-
Notifications
You must be signed in to change notification settings - Fork 16
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
Create a UserAvatar component #2898
Create a UserAvatar component #2898
Conversation
… write tests for it
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.
please fix Sonar Issue and add more coverage on tests
/> | ||
) : variant === 'monogram' ? ( | ||
<MuiAvatar | ||
onClick={onClick} |
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.
you can replace cn('s2s-avatar',
s2s-avatar-${size})
to variable
)} | ||
{isOnline && ( | ||
<span | ||
className={`s2s-user-avatar-status s2s-user-avatar-status-${size}`} |
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.
use cn for this className
Quality Gate passedIssues Measures |
Implemented a reusable UserAvatar component that meets the design system standards. Covered the tests component and added to the storybook