Skip to content

Commit 043fe94

Browse files
committed
Convert icon
1 parent 1966583 commit 043fe94

File tree

1 file changed

+11
-9
lines changed

1 file changed

+11
-9
lines changed

src/components/CallToContribute.tsx

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@ import React from "react"
22
import styled from "@emotion/styled"
33
import Link from "./Link"
44
import ButtonLink from "./ButtonLink"
5-
import Icon from "./Icon"
65

76
import Translation from "./Translation"
8-
import { Flex, Heading, Text } from "@chakra-ui/react"
7+
import { Flex, Heading, Icon, Text } from "@chakra-ui/react"
8+
import { FaGithub } from "react-icons/fa"
99

1010
const Column = styled.div`
1111
flex: 1 1 50%;
@@ -24,11 +24,6 @@ const ImageColumn = styled(Column)`
2424
}
2525
`
2626

27-
const GithubIcon = styled(Icon)`
28-
fill: ${(props) => props.theme.colors.background};
29-
margin-right: 0.5rem;
30-
`
31-
3227
export interface IProps {
3328
editPath: string
3429
}
@@ -42,7 +37,7 @@ const CallToContribute: React.FC<IProps> = ({ editPath }) => (
4237
borderStyle="solid"
4338
borderColor="primary"
4439
borderRadius="base"
45-
boxShadow="inset 0 -2px 0 0 primary400"
40+
boxShadow="inset 0 -2px 0 0 var(--eth-colors-primary400)"
4641
>
4742
<ImageColumn>
4843
░░░░░░░░░▄░░░░░░░░░░░░░░▄░░░░ ░░░░░░░░▌▒█░░░░░░░░░░░▄▀▒▌░░░
@@ -113,7 +108,14 @@ const CallToContribute: React.FC<IProps> = ({ editPath }) => (
113108
color: "secondaryButtonHoverColor",
114109
}}
115110
>
116-
<GithubIcon name="github" />{" "}
111+
<Icon
112+
fill="background"
113+
mr={2}
114+
w={6}
115+
h={6}
116+
as={FaGithub}
117+
name="github"
118+
/>{" "}
117119
<span>
118120
<Translation id="page-calltocontribute-span" />
119121
</span>

0 commit comments

Comments
 (0)