Skip to content

Conversation

@naorpeled
Copy link
Contributor

@naorpeled naorpeled commented Oct 24, 2024

Resolves #2008

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!

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