-
Notifications
You must be signed in to change notification settings - Fork 317
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
feat(ListItemAvatar): support Avatar props #2560
base: master
Are you sure you want to change the base?
feat(ListItemAvatar): support Avatar props #2560
Conversation
@@ -27,6 +36,7 @@ const ListItemAvatar: VibeComponent<ListItemAvatarProps> & { components?: typeof | |||
type={Avatar.types.IMG} | |||
size={Avatar.sizes.SMALL} | |||
className={cx(styles.avatar, avatarClassName)} | |||
{...avatarProps} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should I omit className
and id
as they're applied to the Component
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
They are already omitted while spreading the props so no need
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, you're absolutely right, my bad 🤦
Hey @talkor, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Excellent! Thank you @naorpeled!
@@ -27,6 +36,7 @@ const ListItemAvatar: VibeComponent<ListItemAvatarProps> & { components?: typeof | |||
type={Avatar.types.IMG} | |||
size={Avatar.sizes.SMALL} | |||
className={cx(styles.avatar, avatarClassName)} | |||
{...avatarProps} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
They are already omitted while spreading the props so no need
Resolves #2008