From 2bcc4cb8dfa565561732fbe5b1b650be35be04f0 Mon Sep 17 00:00:00 2001 From: armando Date: Wed, 29 Nov 2023 11:37:21 -0600 Subject: [PATCH 1/2] feat: Readd hour counts --- components/rankings/MintRankingsTable.tsx | 24 +++++++++++++++++++---- 1 file changed, 20 insertions(+), 4 deletions(-) diff --git a/components/rankings/MintRankingsTable.tsx b/components/rankings/MintRankingsTable.tsx index a875e25e6..e77fd744e 100644 --- a/components/rankings/MintRankingsTable.tsx +++ b/components/rankings/MintRankingsTable.tsx @@ -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', }, } @@ -99,10 +99,16 @@ const RankingsTableRow: FC = ({ mint, rank }) => { const mintPrice = mint.mintPrice?.toString() // @ts-ignore - const sampleImages: string[] = mint?.sampleImages + const sampleImages: string[] = mint?.sampleImages || [] // @ts-ignore const openseaVerificationStatus = mint?.openseaVerificationStatus + // @ts-ignore + const oneHourCount = mint?.oneHourCount + + // @ts-ignore + const sixHourCount = mint?.sixHourCount + if (isSmallDevice) { return ( = ({ mint, rank }) => { + + {oneHourCount} + + + + {sixHourCount} + + Date: Fri, 1 Dec 2023 09:29:29 -0800 Subject: [PATCH 2/2] feat: Feedback and remove tsignore --- components/common/MintsPeriodDropdown.tsx | 10 +++++----- components/rankings/MintRankingsTable.tsx | 15 ++++----------- 2 files changed, 9 insertions(+), 16 deletions(-) diff --git a/components/common/MintsPeriodDropdown.tsx b/components/common/MintsPeriodDropdown.tsx index 7e734612d..2a2094d83 100644 --- a/components/common/MintsPeriodDropdown.tsx +++ b/components/common/MintsPeriodDropdown.tsx @@ -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) => { diff --git a/components/rankings/MintRankingsTable.tsx b/components/rankings/MintRankingsTable.tsx index e77fd744e..a9d007159 100644 --- a/components/rankings/MintRankingsTable.tsx +++ b/components/rankings/MintRankingsTable.tsx @@ -98,15 +98,8 @@ const RankingsTableRow: FC = ({ mint, rank }) => { const mintPrice = mint.mintPrice?.toString() - // @ts-ignore const sampleImages: string[] = mint?.sampleImages || [] - // @ts-ignore - const openseaVerificationStatus = mint?.openseaVerificationStatus - - // @ts-ignore const oneHourCount = mint?.oneHourCount - - // @ts-ignore const sixHourCount = mint?.sixHourCount if (isSmallDevice) { @@ -140,7 +133,7 @@ const RankingsTableRow: FC = ({ mint, rank }) => { {mint?.name} @@ -213,7 +206,7 @@ const RankingsTableRow: FC = ({ mint, rank }) => { {mint?.name} @@ -260,11 +253,11 @@ const RankingsTableRow: FC = ({ mint, rank }) => { - {oneHourCount} + {mint?.oneHourCount} - {sixHourCount} + {mint?.sixHourCount}