Skip to content

Commit 0d689a4

Browse files
committed
Simplify the style
1 parent 2137116 commit 0d689a4

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/theme/components/Post.tsx

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ export const PostContainer = ({
9797
<DownFade>
9898
<Flex justifyContent="center" mt="4" mb="2" fontSize={[2, 3]}>
9999
<MoreButton>
100-
<StyledLink href={`/${pageId}`}>More</StyledLink>
100+
<Link href={`/${pageId}`}>More</Link>
101101
</MoreButton>
102102
</Flex>
103103
</DownFade>
@@ -112,14 +112,11 @@ const DownFade = ({ children }: { children: ReactNode }): JSX.Element => (
112112
</Fade>
113113
);
114114

115-
const StyledLink = styled(Link)``;
116115
const MoreButton = styled(Card)`
117116
border-width: 2px;
118117
padding: 0;
119-
color: ${colors.text};
120-
background: ${colors.background};
121118
122-
${StyledLink} {
119+
& > a {
123120
text-decoration: none;
124121
display: block;
125122
padding: 8px 70px;

0 commit comments

Comments
 (0)