diff --git a/explorer-nextjs/src/components/cards/ExplorerCard.tsx b/explorer-nextjs/src/components/cards/ExplorerCard.tsx index ffd52989f8..8ac4b1ce14 100644 --- a/explorer-nextjs/src/components/cards/ExplorerCard.tsx +++ b/explorer-nextjs/src/components/cards/ExplorerCard.tsx @@ -16,22 +16,22 @@ const cardSubtitleStyles: SxProps = { }; const ExplorerCard = ({ + label, title, - subtitle, children, sx, }: { - title: string; - subtitle?: string; + label: string; + title?: string; children: React.ReactNode; sx?: SxProps; }) => { return ( {children} diff --git a/explorer-nextjs/src/components/cards/MonoCard.tsx b/explorer-nextjs/src/components/cards/MonoCard.tsx index 31dfda1148..8cd038589d 100644 --- a/explorer-nextjs/src/components/cards/MonoCard.tsx +++ b/explorer-nextjs/src/components/cards/MonoCard.tsx @@ -5,8 +5,9 @@ import Image from "next/image"; import { QRCodeCanvas } from "qrcode.react"; import type React from "react"; import type { FC } from "react"; -import Flag from "react-world-flags"; import profileImagePlaceholder from "../../../public/profileImagePlaceholder.png"; +import CardProfileCountry from "../countryFlag/CountryFlag"; +import type { ICountryFlag } from "../countryFlag/CountryFlag"; // import { Remark42Comments } from "../comments"; import { NymTokenSVG } from "../icons/NymTokenSVG"; import { type ILineChartData, LineChart } from "../lineChart"; @@ -14,10 +15,7 @@ import { type IUpDownPriceIndicatorProps, UpDownPriceIndicator, } from "../price/UpDownPriceIndicator"; -import { - DynamicProgressBar, - type IDynamicProgressBarProps, -} from "../progressBars/DynamicProgressBar"; +import type { IDynamicProgressBarProps } from "../progressBars/EpochProgressBar"; import { StarRating } from "../starRating"; interface ICardTitlePriceProps { @@ -94,28 +92,6 @@ const CardProfileImage = (props: ICardProileImage) => { ); }; -interface ICardProfileCountry { - countryCode: string; - countryName: string; -} - -const CardProfileCountry = (props: ICardProfileCountry) => { - const { countryCode, countryName } = props; - return ( - - - - {countryName} - - - ); -}; - interface ICardCopyAddressProps { title: string; address: string; @@ -241,7 +217,7 @@ export type ContentCardProps = { overTitle?: string; profileImage?: ICardProileImage; title?: string | number; - profileCountry?: ICardProfileCountry; + profileCountry?: ICountryFlag; upDownLine?: IUpDownPriceIndicatorProps; titlePrice?: ICardTitlePriceProps; dataRows?: ICardDataRowsProps; diff --git a/explorer-nextjs/src/components/landingPageComponents/TokenomicsCard.tsx b/explorer-nextjs/src/components/landingPageComponents/TokenomicsCard.tsx index 7c319d9332..50a4fd1a10 100644 --- a/explorer-nextjs/src/components/landingPageComponents/TokenomicsCard.tsx +++ b/explorer-nextjs/src/components/landingPageComponents/TokenomicsCard.tsx @@ -17,7 +17,7 @@ export const TokenomicsCard = () => { ]; return ( - +