Skip to content

Commit e40efa8

Browse files
committed
chore: remove unused dep and replace h3 end tag
1 parent 281a902 commit e40efa8

File tree

1 file changed

+12
-18
lines changed

1 file changed

+12
-18
lines changed

src/components/ExpandableCard.tsx

Lines changed: 12 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ import {
1212
AccordionItem,
1313
AccordionPanel,
1414
Box,
15-
Button,
1615
Heading,
1716
Text,
1817
} from "@chakra-ui/react"
@@ -98,12 +97,7 @@ const ExpandableCard: React.FC<IProps> = ({
9897
my="4"
9998
>
10099
{!!Svg && <Svg />}
101-
<Text
102-
fontSize="xl"
103-
fontWeight="semibold"
104-
flex="1"
105-
m="0"
106-
>
100+
<Text fontSize="xl" fontWeight="semibold" flex="1" m="0">
107101
{title}
108102
</Text>
109103
</Box>
@@ -127,23 +121,23 @@ const ExpandableCard: React.FC<IProps> = ({
127121
</Text>
128122
</Box>
129123
</AccordionButton>
130-
</h3>
124+
</Heading>
131125
<AccordionPanel
132126
paddingX="2"
133127
paddingBottom="2"
134128
paddingTop="0"
135129
onClick={onClick}
136130
>
137-
<Box
138-
fontSize="md"
139-
color="text"
140-
marginTop="8"
141-
paddingTop="6"
142-
borderTop="1px solid"
143-
borderColor="border"
144-
>
145-
{children}
146-
</Box>
131+
<Box
132+
fontSize="md"
133+
color="text"
134+
marginTop="8"
135+
paddingTop="6"
136+
borderTop="1px solid"
137+
borderColor="border"
138+
>
139+
{children}
140+
</Box>
147141
</AccordionPanel>
148142
</AccordionItem>
149143
</Accordion>

0 commit comments

Comments
 (0)