Skip to content

Commit 1966583

Browse files
committed
Convert githubButton
1 parent 5ec5c95 commit 1966583

File tree

1 file changed

+20
-21
lines changed

1 file changed

+20
-21
lines changed

src/components/CallToContribute.tsx

Lines changed: 20 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -24,25 +24,6 @@ const ImageColumn = styled(Column)`
2424
}
2525
`
2626

27-
const GithubButton = styled(ButtonLink)`
28-
display: flex;
29-
align-items: center;
30-
justify-content: center;
31-
color: ${(props) => props.theme.colors.background};
32-
background-color: ${(props) => props.theme.colors.secondaryButtonBackground};
33-
border: 1px solid ${(props) => props.theme.colors.secondaryButtonBorder};
34-
&:hover {
35-
background-color: ${(props) =>
36-
props.theme.colors.secondaryButtonBackgroundHover};
37-
color: ${(props) => props.theme.colors.secondaryButtonHoverColor};
38-
}
39-
&:active {
40-
background-color: ${(props) =>
41-
props.theme.colors.secondaryButtonBackgroundActive};
42-
color: ${(props) => props.theme.colors.secondaryButtonHoverColor};
43-
}
44-
`
45-
4627
const GithubIcon = styled(Icon)`
4728
fill: ${(props) => props.theme.colors.background};
4829
margin-right: 0.5rem;
@@ -113,12 +94,30 @@ const CallToContribute: React.FC<IProps> = ({ editPath }) => (
11394
<Translation id="page-calltocontribute-link-2" />
11495
</Link>{" "}
11596
</Text>
116-
<GithubButton to={editPath}>
97+
<Flex
98+
as={ButtonLink}
99+
to={editPath}
100+
alignItems="center"
101+
justifyContent="center"
102+
color="background"
103+
bg="secondaryButtonBackground"
104+
borderWidth="1px"
105+
borderStyle="solid"
106+
borderColor="secondaryButtonBorder"
107+
_hover={{
108+
background: "secondaryButtonBackgroundHover",
109+
color: "secondaryButtonHoverColor",
110+
}}
111+
_active={{
112+
background: "secondaryButtonBackgroundActive",
113+
color: "secondaryButtonHoverColor",
114+
}}
115+
>
117116
<GithubIcon name="github" />{" "}
118117
<span>
119118
<Translation id="page-calltocontribute-span" />
120119
</span>
121-
</GithubButton>
120+
</Flex>
122121
</Flex>
123122
</Flex>
124123
)

0 commit comments

Comments
 (0)