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

Create a UserAvatar component #2898

Merged
merged 3 commits into from
Dec 4, 2024

Conversation

PavloButynets
Copy link
Contributor

Implemented a reusable UserAvatar component that meets the design system standards. Covered the tests component and added to the storybook
image
image
image

Copy link
Contributor

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}
Copy link
Contributor

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}`}
Copy link
Contributor

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

@PavloButynets PavloButynets requested a review from Made1ra December 4, 2024 13:06
@RomanRozbytskyi RomanRozbytskyi self-requested a review December 4, 2024 13:09
@PavloButynets PavloButynets merged commit bd0a2e1 into develop Dec 4, 2024
10 checks passed
@PavloButynets PavloButynets deleted the feature/2857/create-UserAvatar-component branch December 4, 2024 13:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

(SP: 3) Create UserAvatar component aligned with design system
5 participants