Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: avatar void icon size #141

Merged
merged 1 commit into from
Aug 26, 2024
Merged

fix: avatar void icon size #141

merged 1 commit into from
Aug 26, 2024

Conversation

phoebus-84
Copy link
Collaborator

@phoebus-84 phoebus-84 commented Aug 16, 2024

close: #139

@@ -1,4 +1,4 @@
const SizeOptions = 'xs s m l xl 2xl'.split(' ');
const SizeOptions = ['xs', 's', 'm', 'l', 'xl', '2xl'] as const;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is this better?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

because:

const SizeOptions = 'xs s m l xl 2xl'.split(' ');
export type Size = (typeof SizeOptions)[number]; // Size = string

while:

const SizeOptions = ['xs', 's', 'm', 'l', 'xl', '2xl'] as const;
export type Size = (typeof SizeOptions)[number]; // Size = 'xs' | 's' | 'm' | 'l' | 'xl' | '2xl'

@puria puria merged commit c58a19f into main Aug 26, 2024
3 checks passed
@puria puria deleted the fix_avatar_void_icon_size branch August 26, 2024 11:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

fix avatar profile sizes
2 participants