@@ -2,10 +2,10 @@ import React from "react"
2
2
import styled from "@emotion/styled"
3
3
import Link from "./Link"
4
4
import ButtonLink from "./ButtonLink"
5
- import Icon from "./Icon"
6
5
7
6
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"
9
9
10
10
const Column = styled . div `
11
11
flex: 1 1 50%;
@@ -24,11 +24,6 @@ const ImageColumn = styled(Column)`
24
24
}
25
25
`
26
26
27
- const GithubIcon = styled ( Icon ) `
28
- fill: ${ ( props ) => props . theme . colors . background } ;
29
- margin-right: 0.5rem;
30
- `
31
-
32
27
export interface IProps {
33
28
editPath : string
34
29
}
@@ -42,7 +37,7 @@ const CallToContribute: React.FC<IProps> = ({ editPath }) => (
42
37
borderStyle = "solid"
43
38
borderColor = "primary"
44
39
borderRadius = "base"
45
- boxShadow = "inset 0 -2px 0 0 primary400"
40
+ boxShadow = "inset 0 -2px 0 0 var(--eth-colors- primary400) "
46
41
>
47
42
< ImageColumn >
48
43
░░░░░░░░░▄░░░░░░░░░░░░░░▄░░░░ ░░░░░░░░▌▒█░░░░░░░░░░░▄▀▒▌░░░
@@ -113,7 +108,14 @@ const CallToContribute: React.FC<IProps> = ({ editPath }) => (
113
108
color : "secondaryButtonHoverColor" ,
114
109
} }
115
110
>
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
+ /> { " " }
117
119
< span >
118
120
< Translation id = "page-calltocontribute-span" />
119
121
</ span >
0 commit comments