Skip to content

feat(ListItemAvatar): support Avatar props#2560

Open
naorpeled wants to merge 1 commit intomondaycom:masterfrom
naorpeled:feat/ListItemAvatar/support-avatar-props
Open

feat(ListItemAvatar): support Avatar props#2560
naorpeled wants to merge 1 commit intomondaycom:masterfrom
naorpeled:feat/ListItemAvatar/support-avatar-props

Conversation

@naorpeled
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
Contributor Author

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

Copy link
Copy Markdown
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
Copy Markdown
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