Skip to content

Commit daa9cd9

Browse files
committed
fix icon of the edit button
1 parent 1d7fdf5 commit daa9cd9

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

src/components/ButtonLink.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ const ButtonLink: React.FC<IProps> = ({ children, isSecondary, ...props }) => {
2121
<Button
2222
as={Link}
2323
activeStyle={{}}
24+
hideArrow
2425
// `styles` object sent to `sx` prop per convention
2526
sx={{
2627
...styles,

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)