Skip to content

Commit 2a7e6d9

Browse files
authored
Merge pull request #10808 from ethereum/fix-edit-button-icon
Fix icon of the edit button
2 parents 082cefd + 4aaec0d commit 2a7e6d9

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

src/components/TableOfContents/index.tsx

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -94,11 +94,12 @@ const TableOfContents: React.FC<IProps> = ({
9494
<List {...outerListProps}>
9595
{!hideEditButton && (
9696
<ListItem mb={2}>
97-
<ButtonLink to={editPath} variant="outline" hideArrow mt={0}>
98-
<Flex alignItems="center">
99-
<Icon as={FaGithub} color="text" boxSize={6} me={2} />
100-
<Translation id="edit-page" />
101-
</Flex>
97+
<ButtonLink
98+
leftIcon={<Icon as={FaGithub} />}
99+
to={editPath}
100+
variant="outline"
101+
>
102+
<Translation id="edit-page" />
102103
</ButtonLink>
103104
</ListItem>
104105
)}

0 commit comments

Comments
 (0)