Skip to content

Commit 76db7c9

Browse files
Migrate all the Box imports to div.
1 parent 4051a0b commit 76db7c9

File tree

1 file changed

+12
-23
lines changed

1 file changed

+12
-23
lines changed

src/components/Staking/StakingHierarchy.tsx

Lines changed: 12 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@ import React from "react"
22
import { useTranslation } from "next-i18next"
33
import { IconBase } from "react-icons"
44
import {
5-
Box,
6-
calc,
75
Center,
86
cssVar,
97
Flex,
@@ -131,23 +129,14 @@ const Line = () => {
131129
const medBp = useToken("breakpoints", "md")
132130

133131
return (
134-
<Box
135-
as="aside"
136-
gridColumn={1}
137-
gridRow="1 / 3"
138-
position="relative"
139-
hideBelow={medBp}
132+
<aside
133+
className={`realtive after:h-[calc.subtract("100%", "50px")] after:start-[calc.subtract("50%", "2px")] after:z-1 after:border-orange col-span-1 row-span-2 hidden after:absolute after:top-[50px] after:border-s-4 md:block`}
134+
135+
/*
136+
This value needs to be updated.
140137
_after={{
141-
content: `""`,
142-
height: calc.subtract("100%", "50px"),
143138
borderImage: `linear-gradient(to bottom, ${$colorVar.reference}, ${$nextColorVar.reference}) 1 100%`,
144-
borderInlineStart: "4px",
145-
borderColor: "orange",
146-
position: "absolute",
147-
insetInlineStart: calc.subtract("50%", "2px"),
148-
top: "50px",
149-
zIndex: 1,
150-
}}
139+
}} */
151140
/>
152141
)
153142
}
@@ -277,7 +266,7 @@ const StakingHierarchy = () => {
277266
</Text>
278267
<Text>{t("page-staking-hierarchy-solo-p2")}</Text>
279268
<Text>{t("page-staking-hierarchy-solo-p3")}</Text>
280-
<Box>
269+
<div>
281270
<ButtonLink
282271
href="/staking/solo/"
283272
onClick={() => {
@@ -291,7 +280,7 @@ const StakingHierarchy = () => {
291280
>
292281
{t("page-staking-more-on-solo")}
293282
</ButtonLink>
294-
</Box>
283+
</div>
295284
</Content>
296285
</SectionGrid>
297286
<SectionGrid number={2}>
@@ -310,7 +299,7 @@ const StakingHierarchy = () => {
310299
<Text>{t("page-staking-hierarchy-saas-p1")}</Text>
311300
<Text>{t("page-staking-hierarchy-saas-p2")}</Text>
312301
<Text>{t("page-staking-hierarchy-saas-p3")}</Text>
313-
<Box>
302+
<div>
314303
<ButtonLink
315304
href="/staking/saas/"
316305
onClick={() => {
@@ -324,7 +313,7 @@ const StakingHierarchy = () => {
324313
>
325314
{t("page-staking-more-on-saas")}
326315
</ButtonLink>
327-
</Box>
316+
</div>
328317
</Content>
329318
</SectionGrid>
330319
<SectionGrid number={3}>
@@ -355,7 +344,7 @@ const StakingHierarchy = () => {
355344
<Text>
356345
<Translation id="page-staking:page-staking-hierarchy-pools-p4" />
357346
</Text>
358-
<Box>
347+
<div>
359348
<ButtonLink
360349
href="/staking/pools/"
361350
onClick={() => {
@@ -369,7 +358,7 @@ const StakingHierarchy = () => {
369358
>
370359
{t("page-staking-more-on-pools")}
371360
</ButtonLink>
372-
</Box>
361+
</div>
373362
</Content>
374363
</SectionGrid>
375364
<SectionGrid number={4}>

0 commit comments

Comments
 (0)