diff --git a/src/components/HorizontalCard.tsx b/src/components/HorizontalCard.tsx index 48cbae9ca24..d4ab4caa81b 100644 --- a/src/components/HorizontalCard.tsx +++ b/src/components/HorizontalCard.tsx @@ -1,35 +1,37 @@ import React, { ReactNode } from "react" -import { Box, Flex, FlexProps } from "@chakra-ui/react" import { cn } from "@/lib/utils/cn" import Emoji from "./Emoji" -import Text from "./OldText" -export type HorizontalCardProps = Omit & { +export interface HorizontalCardProps + extends Omit, "title"> { emoji: string + emojiClassName?: string title?: ReactNode description: ReactNode + children?: ReactNode } const HorizontalCard = ({ emoji, + emojiClassName, title, description, children, className, - ...rest -}: HorizontalCardProps) => ( - - - - {title} - - {description} - - <>{children} - - -) + ...props +}: HorizontalCardProps) => { + return ( +
+ +
+

{title}

+

{description}

+ {children} +
+
+ ) +} export default HorizontalCard diff --git a/src/components/Stat/index.tsx b/src/components/Stat/index.tsx index c652ba70745..17ae3fb955a 100644 --- a/src/components/Stat/index.tsx +++ b/src/components/Stat/index.tsx @@ -56,4 +56,4 @@ const Stat = ({ tooltipProps, value, label, isError }: StatProps) => { ) } -export default Stat \ No newline at end of file +export default Stat diff --git a/src/pages/eth.tsx b/src/pages/eth.tsx index 50b245432b7..dd98f7321e5 100644 --- a/src/pages/eth.tsx +++ b/src/pages/eth.tsx @@ -34,6 +34,7 @@ import { StandaloneQuizWidget } from "@/components/Quiz/QuizWidget" import Translation from "@/components/Translation" import { Divider } from "@/components/ui/divider" +import { cn } from "@/lib/utils/cn" import { existsNamespace } from "@/lib/utils/existsNamespace" import { getLastDeployDate } from "@/lib/utils/getLastDeployDate" import { getLocaleTimestamp } from "@/lib/utils/time" @@ -212,9 +213,12 @@ const CardContainer = (props: FlexProps) => ( ) const TokenCard = (props: ComponentProps) => ( - + ) - const TextDivider = () => ( { emoji={token.emoji} title={token.title} description={token.description} - className="text-[5rem]" /> ))} diff --git a/src/pages/gas.tsx b/src/pages/gas.tsx index 2beeaa7b32e..68755473ea9 100644 --- a/src/pages/gas.tsx +++ b/src/pages/gas.tsx @@ -298,8 +298,6 @@ const GasPage = () => { key={benefit.emoji} emoji={benefit.emoji} description={benefit.description} - className="text-5xl" - align="center" /> ))} diff --git a/src/pages/stablecoins.tsx b/src/pages/stablecoins.tsx index e584584fc8c..406de330acc 100644 --- a/src/pages/stablecoins.tsx +++ b/src/pages/stablecoins.tsx @@ -456,17 +456,21 @@ const StablecoinsPage = ({ markets, marketsHasError }) => { me={{ base: 0, lg: 8 }} mb={8} > - + {tokens.map((token, index) => ( ))} - +

{t("page-stablecoins-bitcoin-pizza")}

diff --git a/src/pages/wallets/index.tsx b/src/pages/wallets/index.tsx index 3f8dc0c649d..6ff5f83dc11 100644 --- a/src/pages/wallets/index.tsx +++ b/src/pages/wallets/index.tsx @@ -117,11 +117,8 @@ export const StyledCard = (props: ComponentPropsWithRef) => ( ) const ChecklistItem = (props: HorizontalCardProps) => ( ) @@ -359,19 +356,14 @@ const WalletsPage = () => {

{t("page-wallets-types")}

{t("page-wallets-types-desc")} - + {types.map((type, idx) => ( ))} @@ -447,7 +439,7 @@ const WalletsPage = () => { - + { title={t("page-wallets-triple-check")} description={t("page-wallets-triple-check-desc")} /> - +

{t("page-wallets-tips")}