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

feat(ListItemAvatar): support Avatar props #2560

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

naorpeled
Copy link
Contributor

@naorpeled naorpeled commented Oct 24, 2024

Resolves #2008

@@ -27,6 +36,7 @@ const ListItemAvatar: VibeComponent<ListItemAvatarProps> & { components?: typeof
type={Avatar.types.IMG}
size={Avatar.sizes.SMALL}
className={cx(styles.avatar, avatarClassName)}
{...avatarProps}
Copy link
Contributor Author

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?

Copy link
Member

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

Copy link
Contributor Author

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 🤦

@naorpeled naorpeled marked this pull request as ready for review October 24, 2024 09:53
@naorpeled naorpeled requested a review from a team as a code owner October 24, 2024 09:53
@naorpeled
Copy link
Contributor Author

Hey @talkor,
the PR is ready for a review,
let me know what you think 🙏

Copy link
Member

@talkor talkor left a 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}
Copy link
Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Feat] ListItemAvatar - Be able to provide all Avatar props
2 participants