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

fix(core): 🐛 add progress percentage in circularProgressBar #69

Merged
merged 1 commit into from
Jul 28, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 23 additions & 4 deletions app/components/ProfileCompletenessCard.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import {
CoreChip,
CoreDivider,
CoreIcon,
CoreTypographyOverline,
CoreTypographyBody2,
CoreCircularProgress,
CoreContainedButton,
Expand Down Expand Up @@ -174,11 +175,29 @@ export default function ProfileCompletenessCard() {
<CoreCard>
<CoreCardHeader
avatar={
<CoreCircularProgress
variant="determinate"
value={report?.quotient}
<CoreBox styleClasses={[CoreClasses.POSITION.POSITION_RELATIVE, CoreClasses.DISPLAY.INLINE_FLEX]}>
<CoreCircularProgress
variant="determinate"
value={report?.quotient}
// size={100}
/>
/>

<CoreBox styleClasses={[
CoreClasses.POSITION.TOP_50,
CoreClasses.POSITION.BOTTOM_0,
CoreClasses.POSITION.START_0,
CoreClasses.POSITION.END_0,
CoreClasses.POSITION.POSITION_ABSOLUTE,
CoreClasses.DISPLAY.FLEX,
CoreClasses.ALIGNMENT.ALIGN_ITEMS_CENTER,
CoreClasses.ALIGNMENT.JUSTIFY_CONTENT_CENTER
]}>
<CoreTypographyOverline styleClasses={[CoreClasses.TEXT.TEXT_WEIGHT_MEDIUM, CoreClasses.COLOR.TEXT_PRIMARY]}>
{`${report?.quotient}%`}
</CoreTypographyOverline>
</CoreBox>
</CoreBox>

}
title="Setup your Rxefy account"
subheader="You still have information missing on your profile"
Expand Down
Loading