-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1069 from oasisprotocol/mz/nftTweaks
NFT tweaks and fixes
- Loading branch information
Showing
27 changed files
with
317 additions
and
115 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Add NFT feature |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
import { FC } from 'react' | ||
import Box from '@mui/material/Box' | ||
import Typography from '@mui/material/Typography' | ||
import { COLORS } from 'styles/theme/colors' | ||
|
||
type CardHeaderWithCounterProps = { | ||
label: string | undefined | ||
totalCount: number | undefined | ||
isTotalCountClipped: boolean | undefined | ||
} | ||
|
||
export const CardHeaderWithCounter: FC<CardHeaderWithCounterProps> = ({ | ||
label, | ||
totalCount, | ||
isTotalCountClipped, | ||
}) => { | ||
return ( | ||
<Box sx={{ display: 'flex', alignItems: 'baseline' }} gap={2}> | ||
<Typography color={COLORS.brandExtraDark} fontSize={24}> | ||
{label} | ||
</Typography> | ||
{!!totalCount && ( | ||
<Typography color={COLORS.grayMedium}> | ||
({`${isTotalCountClipped ? ' > ' : ''}${totalCount}`}) | ||
</Typography> | ||
)} | ||
</Box> | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,22 @@ | ||
import LinearProgress from '@mui/material/LinearProgress' | ||
import MuiLinearProgress, { linearProgressClasses } from '@mui/material/LinearProgress' | ||
import { styled } from '@mui/material/styles' | ||
import { COLORS } from 'styles/theme/colors' | ||
|
||
export const VerticalProgressBar = styled(LinearProgress)(() => ({ | ||
export const VerticalProgressBar = styled(MuiLinearProgress)(() => ({ | ||
[`&.${linearProgressClasses.determinate} > .${linearProgressClasses.bar1Determinate}`]: { | ||
backgroundColor: COLORS.brandDark, | ||
}, | ||
height: 36, | ||
width: 36, | ||
transform: 'rotate(-90deg)', | ||
})) | ||
|
||
export const ProgressBar = styled(MuiLinearProgress)(() => ({ | ||
[`&.${linearProgressClasses.determinate} > .${linearProgressClasses.bar1Determinate}`]: { | ||
backgroundColor: COLORS.eucalyptus, | ||
}, | ||
borderColor: COLORS.eucalyptus, | ||
backgroundColor: COLORS.honeydew, | ||
height: '12px', | ||
width: '85px', | ||
})) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.