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>
</ProgressRow>
<ProgressStats>
<Stat>Current Rate: 100%</Stat>
<Stat>Current Rate: {progress}%</Stat>
{/* <Stat>XP Bonus: +20%</Stat> */}
</ProgressStats>
<ProgressFooter>

View File

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