File tree Expand file tree Collapse file tree 1 file changed +6
-27
lines changed
src/components/Simulator/WalletHome Expand file tree Collapse file tree 1 file changed +6
-27
lines changed Original file line number Diff line number Diff line change 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"
3
4
4
5
import { defaultTokenBalances } from "../constants"
5
6
import type { SimulatorNav } from "../interfaces"
@@ -35,34 +36,12 @@ export const WalletHome = ({
35
36
0
36
37
)
37
38
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" >
54
41
< WalletBalance usdAmount = { totalAmounts } />
55
42
< SendReceiveButtons nav = { nav } isEnabled = { isEnabled } />
56
43
</ 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" >
66
45
< CategoryTabs
67
46
categories = { [ "Crypto" , "NFTs" ] }
68
47
activeIndex = { activeTabIndex }
You can’t perform that action at this time.
0 commit comments