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(react): add CircularProgressAvatar component #31

Merged
merged 9 commits into from
Feb 15, 2023

Conversation

savindi7
Copy link
Contributor

@savindi7 savindi7 commented Feb 15, 2023

Purpose

Add the following component.

  • CircularProgressAvatar

    Screenshot 2023-02-15 at 18 16 04

Related Issues

Related PRs

  • None

Checklist

  • UX/UI review done on the final implementation.
  • Story provided. (Add screenshots)
  • Manual test round performed and verified.
  • Unit tests provided. (Add links if there are any)
  • Documentation provided. (Add links if there are any)

Security checks

* under the License.
*/

import {Badge, BadgeProps, CircularProgress, CircularProgressProps} from '@mui/material';
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wrap these components. Even if not wrapped, always better to use the tree shakable import syntax.
https://mui.com/material-ui/guides/minimizing-bundle-size/#option-one-use-path-imports

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Got it. Will wrap and do this improvement in commits seperately.

brionmario
brionmario previously approved these changes Feb 15, 2023
@savindi7 savindi7 changed the title feat(react): add ProfileOverview component feat(react): add CircularProgressAvatar component Feb 15, 2023
Comment on lines +28 to +35
args={{color: 'warning',
progress: 70,
badgeOptions: {color: 'primary', badgeContent: '70%'},
avatarOptions: {
src: '/assets/images/avatar-john.svg',
alt:'avatar',
}
}}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we move colors to the next line to make it more readable?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ack. Will send a seperate PR for this improvement.

@savindi7 savindi7 merged commit 51620f8 into wso2:main Feb 15, 2023
@savindi7 savindi7 mentioned this pull request Feb 16, 2023
73 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants