Skip to content

Commit a8400a4

Browse files
Migrate the ListItems,List.
1 parent 053e8cf commit a8400a4

File tree

1 file changed

+3
-11
lines changed
  • src/components/Staking/StakingConsiderations

1 file changed

+3
-11
lines changed

src/components/Staking/StakingConsiderations/index.tsx

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { List, ListItem } from "@chakra-ui/react"
1+
import { List, ListItem } from "@/components/ui/list"
22
import { VStack, Flex } from "@/components/ui/flex"
33

44
import type { StakingPage } from "@/lib/types"
@@ -76,7 +76,7 @@ const StakingConsiderations = ({ page }: StakingConsiderationsProps) => {
7676
{/* TODO: Improve a11y */}
7777
<div className="hidden flex-1 md:block">
7878
{!!pageData && (
79-
<List m={0}>
79+
<List className="m-0">
8080
{/* TODO: Make mobile responsive */}
8181
{pageData.map(({ title, matomo }, idx) => (
8282
<ListItem
@@ -85,15 +85,7 @@ const StakingConsiderations = ({ page }: StakingConsiderationsProps) => {
8585
handleSelection(idx)
8686
trackCustomEvent(matomo)
8787
}}
88-
py={1}
89-
cursor="pointer"
90-
display="table"
91-
w="full"
92-
h={8}
93-
p="3"
94-
mb="0"
95-
_hover={activeStyles}
96-
position="relative"
88+
className={`relative mb-0 table h-8 w-full cursor-pointer p-3 py-1 hover:[${activeStyles}]`}
9789
{...(idx === activeIndex
9890
? activeStyles
9991
: { color: "primary.base" })}

0 commit comments

Comments
 (0)