diff --git a/src/components/Staking/WithdrawalsTabComparison.tsx b/src/components/Staking/WithdrawalsTabComparison.tsx index 937f390f50d..45b4f896a27 100644 --- a/src/components/Staking/WithdrawalsTabComparison.tsx +++ b/src/components/Staking/WithdrawalsTabComparison.tsx @@ -1,22 +1,14 @@ import { useTranslation } from "next-i18next" -import { - ListItem, - Tab, - TabList, - TabPanel, - TabPanels, - Tabs, - UnorderedList, -} from "@chakra-ui/react" -import { ButtonLink } from "@/components/Buttons" -import OldHeading from "@/components/OldHeading" -import Text from "@/components/OldText" import WithdrawalCredentials from "@/components/Staking/WithdrawalCredentials" import Translation from "@/components/Translation" +import { ListItem, UnorderedList } from "@/components/ui/list" +import { Tabs, TabsContent, TabsList, TabsTrigger } from "@/components/ui/tabs" import { trackCustomEvent } from "@/lib/utils/matomo" +import { ButtonLink } from "../ui/buttons/Button" + const WithdrawalsTabComparison = () => { const { t } = useTranslation("page-staking") const handleMatomoEvent = (name: string): void => { @@ -28,50 +20,53 @@ const WithdrawalsTabComparison = () => { } return ( - - - handleMatomoEvent("Current stakers")}> + + + handleMatomoEvent("Current stakers")} + > {t("comp-withdrawal-comparison-current-title")} - - handleMatomoEvent("New stakers")}> + + handleMatomoEvent("New stakers")} + > {t("comp-withdrawal-comparison-new-title")} - - + + - - - - {t("comp-withdrawal-comparison-current-title")} - - - - {" "} - - - - - - - - + +

{t("comp-withdrawal-comparison-current-title")}

+ + + {" "} + + + + + +

+ +

- -
+ + - - - {t("comp-withdrawal-comparison-new-title")} - - - {t("comp-withdrawal-comparison-new-li-1")} - {t("comp-withdrawal-comparison-new-li-2")} - - {t("comp-withdrawal-comparison-new-p")} - - {t("comp-withdrawal-comparison-new-link")} - - -
+ +

{t("comp-withdrawal-comparison-new-title")}

+ + {t("comp-withdrawal-comparison-new-li-1")} + {t("comp-withdrawal-comparison-new-li-2")} + +

{t("comp-withdrawal-comparison-new-p")}

+ + {t("comp-withdrawal-comparison-new-link")} + +
) } diff --git a/src/components/ui/tabs.tsx b/src/components/ui/tabs.tsx index 96214db4b3f..eeed667363c 100644 --- a/src/components/ui/tabs.tsx +++ b/src/components/ui/tabs.tsx @@ -12,7 +12,7 @@ const TabsList = React.forwardRef<