Skip to content

Commit

Permalink
Merge branch 'armando/grwth-3585-trending-mint-detail-page' into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
r3lays committed Dec 1, 2023
2 parents a811e6e + d850487 commit 2b96676
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 14 deletions.
10 changes: 5 additions & 5 deletions components/common/MintsPeriodDropdown.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@ export type MintsSortingOption = NonNullable<
>

const sortingOptions: MintsSortingOption[] = [
'24h',
'6h',
'1h',
'30m',
'10m',
'5m',
'10m',
'30m',
'1h',
'6h',
'24h',
]

const nameForSortingOption = (option: MintsSortingOption, compact: boolean) => {
Expand Down
27 changes: 18 additions & 9 deletions components/rankings/MintRankingsTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,17 +25,17 @@ type Props = {
}

const gridColumns = {
gridTemplateColumns: '520px repeat(3, 0.5fr) 250px',
gridTemplateColumns: '520px repeat(5, 0.5fr) 250px',
'@md': {
gridTemplateColumns: '420px 1fr 1fr 1fr',
},

'@lg': {
gridTemplateColumns: '360px repeat(3, 0.5fr) 250px',
gridTemplateColumns: '360px repeat(5, 0.5fr) 250px',
},

'@xl': {
gridTemplateColumns: '520px repeat(3, 0.5fr) 250px',
gridTemplateColumns: '520px repeat(5, 0.5fr) 250px',
},
}

Expand Down Expand Up @@ -98,10 +98,9 @@ const RankingsTableRow: FC<RankingsTableRowProps> = ({ mint, rank }) => {

const mintPrice = mint.mintPrice?.toString()

// @ts-ignore
const sampleImages: string[] = mint?.sampleImages
// @ts-ignore
const openseaVerificationStatus = mint?.openseaVerificationStatus
const sampleImages: string[] = mint?.sampleImages || []
const oneHourCount = mint?.oneHourCount
const sixHourCount = mint?.sixHourCount

if (isSmallDevice) {
return (
Expand Down Expand Up @@ -134,7 +133,7 @@ const RankingsTableRow: FC<RankingsTableRowProps> = ({ mint, rank }) => {
{mint?.name}
</Text>
<OpenSeaVerified
openseaVerificationStatus={openseaVerificationStatus}
openseaVerificationStatus={mint?.openseaVerificationStatus}
/>
</Flex>
<Flex align="center">
Expand Down Expand Up @@ -207,7 +206,7 @@ const RankingsTableRow: FC<RankingsTableRowProps> = ({ mint, rank }) => {
{mint?.name}
</Text>
<OpenSeaVerified
openseaVerificationStatus={openseaVerificationStatus}
openseaVerificationStatus={mint?.openseaVerificationStatus}
/>
</Flex>
</Flex>
Expand Down Expand Up @@ -253,6 +252,14 @@ const RankingsTableRow: FC<RankingsTableRowProps> = ({ mint, rank }) => {
</Flex>
</TableCell>

<TableCell desktopOnly>
<Text style="subtitle1">{mint?.oneHourCount}</Text>
</TableCell>

<TableCell desktopOnly>
<Text style="subtitle1">{mint?.sixHourCount}</Text>
</TableCell>

<TableCell desktopOnly>
<Flex
css={{
Expand Down Expand Up @@ -297,6 +304,8 @@ const headings = [
'Mint Price',
'Floor Price',
'Total Mints',
'1H Mints',
'6h Mints',
'Recent Mints',
]

Expand Down

0 comments on commit 2b96676

Please sign in to comment.