Skip to content

Commit 050a894

Browse files
committed
fix comments
1 parent 8ad564b commit 050a894

File tree

1 file changed

+10
-18
lines changed

1 file changed

+10
-18
lines changed

src/components/CallToContribute.tsx

Lines changed: 10 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1+
import { Flex, Heading, Icon, Text } from "@chakra-ui/react"
2+
import { FaGithub } from "react-icons/fa"
13
import React from "react"
24
import Link from "./Link"
35
import ButtonLink from "./ButtonLink"
46

57
import Translation from "./Translation"
6-
import { Flex, Heading, Icon, Text } from "@chakra-ui/react"
7-
import { FaGithub } from "react-icons/fa"
88

99
export interface IProps {
1010
editPath: string
@@ -13,10 +13,9 @@ export interface IProps {
1313
const CallToContribute: React.FC<IProps> = ({ editPath }) => (
1414
<Flex
1515
bg="ednBackground"
16-
alignItems="center"
16+
align="center"
1717
mt={8}
18-
borderWidth="1px"
19-
borderStyle="solid"
18+
border="1px"
2019
borderColor="primary"
2120
borderRadius="base"
2221
boxShadow="inset 0 -2px 0 0 var(--eth-colors-primary400)"
@@ -80,7 +79,7 @@ const CallToContribute: React.FC<IProps> = ({ editPath }) => (
8079
<Translation id="page-calltocontribute-link-2" />
8180
</Link>{" "}
8281
</Text>
83-
<Flex
82+
<ButtonLink
8483
as={ButtonLink}
8584
to={editPath}
8685
alignItems="center"
@@ -98,19 +97,12 @@ const CallToContribute: React.FC<IProps> = ({ editPath }) => (
9897
background: "secondaryButtonBackgroundActive",
9998
color: "secondaryButtonHoverColor",
10099
}}
100+
leftIcon={
101+
<Icon fill="background" w={6} h={6} as={FaGithub} name="github" />
102+
}
101103
>
102-
<Icon
103-
fill="background"
104-
mr={2}
105-
w={6}
106-
h={6}
107-
as={FaGithub}
108-
name="github"
109-
/>{" "}
110-
<span>
111-
<Translation id="page-calltocontribute-span" />
112-
</span>
113-
</Flex>
104+
<Translation id="page-calltocontribute-span" />
105+
</ButtonLink>
114106
</Flex>
115107
</Flex>
116108
)

0 commit comments

Comments
 (0)