Skip to content

Commit

Permalink
feat: change progress bar and copy icon to account color
Browse files Browse the repository at this point in the history
  • Loading branch information
LowderPlay committed Oct 2, 2023
1 parent 4674ce4 commit 591c60d
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/pages/Accounts.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,13 +53,18 @@ const Accounts: FC = () => {
<Typography variant="h3">
{code.match(/.{1,3}/g)?.join(" ")}
</Typography>
<IconButton color="primary" onClick={() => {
<IconButton color={selectedAccount?.color} onClick={() => {
copy(code);
}}>
<ContentCopyIcon fontSize="large"/>
</IconButton>
</Stack>
<LinearProgress sx={{marginY: theme.spacing(1), borderRadius: 100, height: 6}} variant="determinate" value={progress*100} />
<LinearProgress
sx={{marginY: theme.spacing(1), borderRadius: 100, height: 6}}
variant="determinate"
value={progress*100}
color={selectedAccount?.color}
/>
</Container>

<Container disableGutters>
Expand Down

0 comments on commit 591c60d

Please sign in to comment.