Skip to content

Commit a4ad29e

Browse files
committed
Move LinkInButton in Link file
1 parent ee431fb commit a4ad29e

File tree

6 files changed

+14
-13
lines changed

6 files changed

+14
-13
lines changed

src/theme/components/Footer.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import styled from 'styled-components';
1818
import { Box, Flex, Image, Text } from 'rebass/styled-components';
1919
import { Fade } from 'react-awesome-reveal';
2020
import SocialLink from './SocialLink';
21-
import Link from './Link';
21+
import { Link } from './Link';
2222
import { GATSBY_URL, MEDIA_QUERY_SMALL } from '../utils/constants';
2323
import { landing } from '../../content/LandingContent';
2424
import { header } from '../../content/HeaderContent';

src/theme/components/Header.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ import {
2323
Button,
2424
} from 'rebass/styled-components';
2525
import styled from 'styled-components';
26-
import Link from './Link';
26+
import { Link } from './Link';
2727
import { capitalize } from '../utils/string';
2828
import { SECTION } from '../utils/constants';
2929
import { getSectionHref } from '../utils/helpers';

src/theme/components/Link.tsx

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,4 +54,12 @@ const Link = styled.a<Props>`
5454
}
5555
`;
5656

57-
export default Link;
57+
const LinkInButton = styled.a`
58+
text-decoration: none;
59+
display: block;
60+
padding: '8px 16px';
61+
font-weight: 600;
62+
color: inherit;
63+
`;
64+
65+
export { Link, LinkInButton };

src/theme/components/PageHeader.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ import {
2525
import styled from 'styled-components';
2626
import { header } from '../../content/HeaderContent';
2727
import { PAGE } from '../utils/constants';
28-
import Link from './Link';
28+
import { Link } from './Link';
2929
import { capitalize } from '../utils/string';
3030

3131
const PageHeader = (): JSX.Element => {

src/theme/components/Post.tsx

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ import { PostDescription } from '../types';
2020
import { Card, CardContainer } from './Card';
2121
import CardFooter from './CardFooter';
2222
import { Fade } from 'react-awesome-reveal';
23+
import { LinkInButton } from './Link';
2324

2425
const cardMinWidth = '350px';
2526

@@ -113,11 +114,3 @@ const DownFade = ({ children }: { children: ReactNode }): JSX.Element => (
113114
{children}
114115
</Fade>
115116
);
116-
117-
const LinkInButton = styled.a`
118-
text-decoration: none;
119-
display: block;
120-
padding: '8px 16px';
121-
font-weight: 600;
122-
color: inherit;
123-
`;

src/theme/components/Section.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import React, { ReactNode } from 'react';
1717
import styled from 'styled-components';
1818
import { Heading } from 'rebass/styled-components';
1919
import { Slide } from 'react-awesome-reveal';
20-
import Link from './Link';
20+
import { Link } from './Link';
2121
import { MEDIA_QUERY_SMALL, SECTION } from '../utils/constants';
2222
import { getSectionHref } from '../utils/helpers';
2323

0 commit comments

Comments
 (0)