File tree Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change 9
9
Hide ,
10
10
Show ,
11
11
Text ,
12
+ useToken ,
12
13
} from "@chakra-ui/react"
13
14
import Card from "../Card"
14
15
import Translation from "../Translation"
@@ -31,6 +32,9 @@ const Trilemma: React.FC<IProps> = () => {
31
32
...trilemmaChecks ,
32
33
}
33
34
35
+ // TODO: Replace with direct token implementation after UI migration is completed
36
+ const lgBp = useToken ( "breakpoints" , "lg" )
37
+
34
38
return (
35
39
< Flex
36
40
alignItems = "flex-start"
@@ -59,19 +63,16 @@ const Trilemma: React.FC<IProps> = () => {
59
63
< Text >
60
64
< Translation id = "page-upgrades-vision-trilemma-p-2" />
61
65
</ Text >
62
- { /* TODO: replace `l` with `lg` after UI migration */ }
63
- < Show below = "l" >
66
+ < Show below = { lgBp } >
64
67
< Text fontWeight = { 600 } >
65
68
< Translation id = "page-upgrades-vision-trilemma-modal-tip" /> :
66
69
</ Text >
67
70
</ Show >
68
- { /* TODO: replace `l` with `lg` after UI migration */ }
69
- < Hide below = "l" >
71
+ < Hide below = { lgBp } >
70
72
< Card { ...cardDetail } mt = { 8 } minH = "300px" />
71
73
</ Hide >
72
74
</ Flex >
73
- { /* TODO: replace `l` with `lg` after UI migration */ }
74
- < Hide above = "l" >
75
+ < Hide above = { lgBp } >
75
76
< Drawer
76
77
isOpen = { mobileModalOpen }
77
78
onClose = { handleModalClose }
You can’t perform that action at this time.
0 commit comments