Skip to content

Commit 07d0d56

Browse files
feat(Simulator/WalletHome/index): migrate to Tailwind
1 parent d424beb commit 07d0d56

File tree

1 file changed

+6
-27
lines changed

1 file changed

+6
-27
lines changed

src/components/Simulator/WalletHome/index.tsx

Lines changed: 6 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
import React, { type Dispatch, type SetStateAction } from "react"
2-
import { Flex } from "@chakra-ui/react"
1+
import { type Dispatch, type SetStateAction } from "react"
2+
3+
import { Flex } from "@/components/ui/flex"
34

45
import { defaultTokenBalances } from "../constants"
56
import type { SimulatorNav } from "../interfaces"
@@ -35,34 +36,12 @@ export const WalletHome = ({
3536
0
3637
)
3738
return (
38-
<Flex
39-
direction="column"
40-
alignItems="center"
41-
bg="background.base"
42-
position="absolute"
43-
inset={0}
44-
>
45-
<Flex
46-
direction="column"
47-
flex={1}
48-
pt={8}
49-
pb={4}
50-
px={6}
51-
justify="space-between"
52-
w="full"
53-
>
39+
<Flex className="absolute inset-0 flex-col items-center bg-background">
40+
<Flex className="w-full flex-1 flex-col justify-between px-6 pb-4 pt-8">
5441
<WalletBalance usdAmount={totalAmounts} />
5542
<SendReceiveButtons nav={nav} isEnabled={isEnabled} />
5643
</Flex>
57-
<Flex
58-
direction="column"
59-
flex={1}
60-
p={6}
61-
gap={6}
62-
justify="space-between"
63-
w="full"
64-
bg="background.highlight"
65-
>
44+
<Flex className="w-full flex-1 flex-col justify-between gap-6 bg-background-highlight p-6">
6645
<CategoryTabs
6746
categories={["Crypto", "NFTs"]}
6847
activeIndex={activeTabIndex}

0 commit comments

Comments
 (0)