Skip to content

Commit 88e669a

Browse files
committed
migrate checkbox
1 parent 0e2b6d6 commit 88e669a

File tree

1 file changed

+42
-38
lines changed

1 file changed

+42
-38
lines changed

src/pages/staking/deposit-contract.tsx

Lines changed: 42 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import { type GetStaticProps } from "next"
44
import { useRouter } from "next/router"
55
import { useTranslation } from "next-i18next"
66
import { serverSideTranslations } from "next-i18next/serverSideTranslations"
7-
import { Checkbox } from "@chakra-ui/react"
87

98
import type {
109
BasePageProps,
@@ -41,6 +40,8 @@ import { getRequiredNamespacesForPage } from "@/lib/utils/translations"
4140

4241
import { DEPOSIT_CONTRACT_ADDRESS } from "@/data/addresses"
4342

43+
import Checkbox from "../../../tailwind/ui/Checkbox"
44+
4445
import consensys from "@/public/images/projects/consensys.png"
4546
import etherscan from "@/public/images/projects/etherscan-logo-circle.png"
4647
import ef from "@/public/images/staking/ef-blog-logo.png"
@@ -335,43 +336,46 @@ const DepositContractPage = () => {
335336
{t("page-staking-deposit-contract-confirm-address")}
336337
</CardTitle>
337338
</Row>
338-
<Checkbox
339-
mb={2}
340-
isChecked={state.userHasUsedLaunchpad}
341-
onChange={() =>
342-
setState({
343-
...state,
344-
userHasUsedLaunchpad: !state.userHasUsedLaunchpad,
345-
})
346-
}
347-
>
348-
{t("page-staking-deposit-contract-checkbox1")}
349-
</Checkbox>
350-
<Checkbox
351-
mb={2}
352-
isChecked={state.userUnderstandsStaking}
353-
onChange={() =>
354-
setState({
355-
...state,
356-
userUnderstandsStaking: !state.userUnderstandsStaking,
357-
})
358-
}
359-
>
360-
{t("page-staking-deposit-contract-checkbox2")}
361-
</Checkbox>
362-
<Checkbox
363-
mb={2}
364-
isChecked={state.userWillCheckOtherSources}
365-
onChange={() =>
366-
setState({
367-
...state,
368-
userWillCheckOtherSources:
369-
!state.userWillCheckOtherSources,
370-
})
371-
}
372-
>
373-
{t("page-staking-deposit-contract-checkbox3")}
374-
</Checkbox>
339+
<Flex className="flex-col">
340+
<label className="mb-2 flex items-center gap-2">
341+
<Checkbox
342+
checked={state.userHasUsedLaunchpad}
343+
onCheckedChange={() =>
344+
setState({
345+
...state,
346+
userHasUsedLaunchpad: !state.userHasUsedLaunchpad,
347+
})
348+
}
349+
/>
350+
{t("page-staking-deposit-contract-checkbox1")}
351+
</label>
352+
<label className="mb-2 flex items-center gap-2">
353+
<Checkbox
354+
checked={state.userUnderstandsStaking}
355+
onCheckedChange={() =>
356+
setState({
357+
...state,
358+
userUnderstandsStaking:
359+
!state.userUnderstandsStaking,
360+
})
361+
}
362+
/>
363+
{t("page-staking-deposit-contract-checkbox2")}
364+
</label>
365+
<label className="mb-2 flex items-center gap-2">
366+
<Checkbox
367+
checked={state.userWillCheckOtherSources}
368+
onCheckedChange={() =>
369+
setState({
370+
...state,
371+
userWillCheckOtherSources:
372+
!state.userWillCheckOtherSources,
373+
})
374+
}
375+
/>
376+
{t("page-staking-deposit-contract-checkbox3")}
377+
</label>
378+
</Flex>
375379
<CopyButton
376380
disabled={!isButtonEnabled}
377381
onClick={() =>

0 commit comments

Comments
 (0)