-
Notifications
You must be signed in to change notification settings - Fork 27
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
Conversation
packages/react/src/components/CircularProgressAvatar/CircularProgressAvatar.tsx
Show resolved
Hide resolved
* under the License. | ||
*/ | ||
|
||
import {Badge, BadgeProps, CircularProgress, CircularProgressProps} from '@mui/material'; |
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.
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
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.
Got it. Will wrap and do this improvement in commits seperately.
packages/react/src/components/CircularProgressAvatar/CircularProgressAvatar.tsx
Outdated
Show resolved
Hide resolved
packages/react/src/components/CircularProgressAvatar/CircularProgressAvatar.tsx
Outdated
Show resolved
Hide resolved
packages/react/src/components/CircularProgressAvatar/CircularProgressAvatar.tsx
Outdated
Show resolved
Hide resolved
ProfileOverview
componentCircularProgressAvatar
component
…-1 into feat-profile-overview
…-1 into feat-profile-overview
args={{color: 'warning', | ||
progress: 70, | ||
badgeOptions: {color: 'primary', badgeContent: '70%'}, | ||
avatarOptions: { | ||
src: '/assets/images/avatar-john.svg', | ||
alt:'avatar', | ||
} | ||
}} |
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.
Can we move colors to the next line to make it more readable?
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.
Ack. Will send a seperate PR for this improvement.
Purpose
Add the following component.
CircularProgressAvatar
Related Issues
Related PRs
Checklist
Security checks