Skip to content

Commit e1a0494

Browse files
committed
use chakra Checkbox as it's not defined in components files
1 parent c590a5e commit e1a0494

File tree

1 file changed

+38
-42
lines changed

1 file changed

+38
-42
lines changed

src/pages/staking/deposit-contract.tsx

Lines changed: 38 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ 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"
78

89
import type {
910
BasePageProps,
@@ -38,8 +39,6 @@ import { getRequiredNamespacesForPage } from "@/lib/utils/translations"
3839

3940
import { DEPOSIT_CONTRACT_ADDRESS } from "@/data/addresses"
4041

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

0 commit comments

Comments
 (0)