|
1 | 1 | import { useState } from "react"
|
2 | 2 | import { useTranslation } from "next-i18next"
|
3 | 3 | import { FaTools } from "react-icons/fa"
|
4 |
| -import { Box } from "@chakra-ui/react" |
5 | 4 |
|
6 |
| -import { ButtonLink } from "@/components/Buttons" |
7 |
| -import Text from "@/components/OldText" |
8 | 5 | import Translation from "@/components/Translation"
|
| 6 | +import { ButtonLink } from "@/components/ui/buttons/Button" |
| 7 | +import { Flex } from "@/components/ui/flex" |
9 | 8 |
|
10 | 9 | import { cn } from "@/lib/utils/cn"
|
11 | 10 | import { trackCustomEvent } from "@/lib/utils/matomo"
|
12 | 11 |
|
13 | 12 | import Select, { type SelectOnChange } from "../Select"
|
14 |
| -import { Flex } from "../ui/flex" |
15 | 13 |
|
16 | 14 | type StakingDataOption = { label: string; value: string }
|
17 | 15 |
|
@@ -54,47 +52,44 @@ const StakingLaunchpadWidget = () => {
|
54 | 52 | "bg-gradient-to-r from-accent-a/10 to-accent-c/10 dark:from-accent-a/20 dark:to-accent-c-hover/20"
|
55 | 53 | )}
|
56 | 54 | >
|
57 |
| - <Text as="span" color="text200"> |
| 55 | + <span className="leading-6 text-body-medium"> |
58 | 56 | <Translation id="page-staking:page-staking-launchpad-widget-span" />
|
59 |
| - </Text> |
60 |
| - <Box my={4} maxW={{ md: "50%" }}> |
| 57 | + </span> |
| 58 | + <div className="my-4 md:max-w-[50%]"> |
61 | 59 | <Select
|
62 | 60 | instanceId="staking-launchpad-select"
|
63 | 61 | options={selectOptions}
|
64 | 62 | onChange={handleChange}
|
65 | 63 | defaultValue={selectOptions[0]}
|
66 | 64 | variant="outline"
|
67 | 65 | />
|
68 |
| - </Box> |
69 |
| - <Text> |
| 66 | + </div> |
| 67 | + <p className="mb-6 leading-6"> |
70 | 68 | <Translation id="page-staking:page-staking-launchpad-widget-p1" />
|
71 |
| - </Text> |
72 |
| - <Text> |
| 69 | + </p> |
| 70 | + <p className="mb-6 leading-6"> |
73 | 71 | <Translation id="page-staking:page-staking-launchpad-widget-p2" />
|
74 |
| - </Text> |
75 |
| - <Box mb={4}> |
76 |
| - <ButtonLink |
77 |
| - href={data[selection].url} |
78 |
| - width={{ base: "full", md: "auto" }} |
79 |
| - > |
| 72 | + </p> |
| 73 | + <div className="mb-4"> |
| 74 | + <ButtonLink href={data[selection].url} className="w-full md:w-auto"> |
80 | 75 | {selection === "mainnet"
|
81 | 76 | ? t("page-staking:page-staking-launchpad-widget-mainnet-start")
|
82 | 77 | : t("page-staking:page-staking-launchpad-widget-testnet-start")}
|
83 | 78 | </ButtonLink>
|
84 |
| - </Box> |
85 |
| - <Text> |
| 79 | + </div> |
| 80 | + <p className="mb-6 leading-6"> |
86 | 81 | <Translation id="page-staking:page-staking-launchpad-widget-p3" />
|
87 |
| - </Text> |
88 |
| - <Box> |
| 82 | + </p> |
| 83 | + <div> |
89 | 84 | <ButtonLink
|
90 | 85 | href="#node-and-client-tools"
|
91 | 86 | variant="outline"
|
92 |
| - width={{ base: "full", md: "auto" }} |
93 |
| - leftIcon={<FaTools />} |
| 87 | + className="w-full md:w-auto" |
94 | 88 | >
|
| 89 | + <FaTools />{" "} |
95 | 90 | <Translation id="page-staking:page-staking-launchpad-widget-link" />
|
96 | 91 | </ButtonLink>
|
97 |
| - </Box> |
| 92 | + </div> |
98 | 93 | </Flex>
|
99 | 94 | )
|
100 | 95 | }
|
|
0 commit comments