1
+ import { Flex , Heading , Icon , Text } from "@chakra-ui/react"
2
+ import { FaGithub } from "react-icons/fa"
1
3
import React from "react"
2
4
import Link from "./Link"
3
5
import ButtonLink from "./ButtonLink"
4
6
5
7
import Translation from "./Translation"
6
- import { Flex , Heading , Icon , Text } from "@chakra-ui/react"
7
- import { FaGithub } from "react-icons/fa"
8
8
9
9
export interface IProps {
10
10
editPath : string
@@ -13,10 +13,9 @@ export interface IProps {
13
13
const CallToContribute : React . FC < IProps > = ( { editPath } ) => (
14
14
< Flex
15
15
bg = "ednBackground"
16
- alignItems = "center"
16
+ align = "center"
17
17
mt = { 8 }
18
- borderWidth = "1px"
19
- borderStyle = "solid"
18
+ border = "1px"
20
19
borderColor = "primary"
21
20
borderRadius = "base"
22
21
boxShadow = "inset 0 -2px 0 0 var(--eth-colors-primary400)"
@@ -80,7 +79,7 @@ const CallToContribute: React.FC<IProps> = ({ editPath }) => (
80
79
< Translation id = "page-calltocontribute-link-2" />
81
80
</ Link > { " " }
82
81
</ Text >
83
- < Flex
82
+ < ButtonLink
84
83
as = { ButtonLink }
85
84
to = { editPath }
86
85
alignItems = "center"
@@ -98,19 +97,12 @@ const CallToContribute: React.FC<IProps> = ({ editPath }) => (
98
97
background : "secondaryButtonBackgroundActive" ,
99
98
color : "secondaryButtonHoverColor" ,
100
99
} }
100
+ leftIcon = {
101
+ < Icon fill = "background" w = { 6 } h = { 6 } as = { FaGithub } name = "github" />
102
+ }
101
103
>
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 >
114
106
</ Flex >
115
107
</ Flex >
116
108
)
0 commit comments