Skip to content

Commit

Permalink
fix(core): 🐛 add progress percentage in circularProgressBar
Browse files Browse the repository at this point in the history
A percentage number should be displayed inside the CircularProgressBar to indicate the progress of profile completeness.

Ref: #68
  • Loading branch information
PritamBag committed Jul 27, 2024
1 parent 888724a commit 5bfc2a1
Showing 1 changed file with 23 additions and 4 deletions.
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

0 comments on commit 5bfc2a1

Please sign in to comment.