chore: update progress bar

This commit is contained in:
jinhojang6 2024-11-02 03:39:14 +09:00
parent b1d6d27e32
commit ee10888c37
2 changed files with 5 additions and 3 deletions

View File

@ -53,7 +53,7 @@ const ProgressBar: React.FC<ProgressBarProps> = ({
</Epoch2Wrapper> </Epoch2Wrapper>
</ProgressRow> </ProgressRow>
<ProgressStats> <ProgressStats>
<Stat>Current Rate: 100%</Stat> <Stat>Current Rate: {progress}%</Stat>
{/* <Stat>XP Bonus: +20%</Stat> */} {/* <Stat>XP Bonus: +20%</Stat> */}
</ProgressStats> </ProgressStats>
<ProgressFooter> <ProgressFooter>

View File

@ -62,18 +62,20 @@ const DashboardContainer: React.FC<DashboardPageProps> = ({
// console.log('userXP', userXP) // console.log('userXP', userXP)
const currentRate = 0
return ( return (
<Container {...props}> <Container {...props}>
<Wrapper> <Wrapper>
<LeftColumn> <LeftColumn>
<MobileProgressBar> <MobileProgressBar>
<ProgressBar progress={30} claimPosition={76} /> <ProgressBar progress={currentRate} claimPosition={80} />
</MobileProgressBar> </MobileProgressBar>
<OperatorPanel /> <OperatorPanel />
</LeftColumn> </LeftColumn>
<RightColumn> <RightColumn>
<DesktopProgressBar> <DesktopProgressBar>
<ProgressBar progress={30} claimPosition={76} /> <ProgressBar progress={currentRate} claimPosition={80} />
</DesktopProgressBar> </DesktopProgressBar>
<OperatorGrid <OperatorGrid
data={processedOperators} data={processedOperators}