Skip to content

Commit 69e9a4f

Browse files
Migrated Center components.
1 parent ddfa10b commit 69e9a4f

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

src/components/Staking/StakingHierarchy.tsx

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ import React from "react"
22
import { useTranslation } from "next-i18next"
33
import { IconBase } from "react-icons"
44
import {
5-
Center,
65
cssVar,
76
Heading,
87
Icon,
@@ -11,7 +10,7 @@ import {
1110
useToken,
1211
VStack,
1312
} from "@chakra-ui/react"
14-
import { Flex } from "@/components/ui/flex"
13+
import { Center, Flex } from "@/components/ui/flex"
1514

1615
import { ChildOnlyProp } from "@/lib/types"
1716

@@ -118,7 +117,10 @@ const SectionGrid = ({ number, children }: SectionGridProps) => {
118117

119118
const StyledEtherSvg = ({ className = "size-full" }: { className: string }) => {
120119
return (
121-
<Center gridArea="ether" zIndex={2} maxW={20} width="full" mx="auto">
120+
<Center
121+
style={{ gridArea: "ether" }}
122+
className="z-2 mx-auto w-full max-w-20"
123+
>
122124
<StakingGlyphEtherCircleIcon className={className} />
123125
</Center>
124126
)
@@ -170,7 +172,11 @@ const Pills = ({ children }: ChildOnlyProp) => (
170172

171173
type GlyphProps = { glyphIcon: typeof IconBase }
172174
const Glyph = ({ glyphIcon }: GlyphProps) => (
173-
<Center gridArea={{ base: "content", md: "glyph" }}>
175+
<Center
176+
style={{
177+
gridArea: "glyph",
178+
}}
179+
>
174180
<Icon
175181
as={glyphIcon}
176182
boxSize={{ base: "50%", md: "50px" }}

0 commit comments

Comments
 (0)