diff options
Diffstat (limited to 'packages/website/ts/@next/components/header.tsx')
-rw-r--r-- | packages/website/ts/@next/components/header.tsx | 22 |
1 files changed, 10 insertions, 12 deletions
diff --git a/packages/website/ts/@next/components/header.tsx b/packages/website/ts/@next/components/header.tsx index b9b04a8c0..c934b29ac 100644 --- a/packages/website/ts/@next/components/header.tsx +++ b/packages/website/ts/@next/components/header.tsx @@ -23,18 +23,6 @@ const links = [ { url: '#', text: 'Blog' }, ]; -const Link: React.StatelessComponent<LinkProps> = props => { - const { children, href } = props; - - return ( - <StyledRouterLink - to={href} - > - {children} - </StyledRouterLink> - ); -}; - export const Header: React.StatelessComponent<HeaderProps> = ({}) => ( <StyledHeader> <HeaderWrap> @@ -50,6 +38,16 @@ export const Header: React.StatelessComponent<HeaderProps> = ({}) => ( </StyledHeader> ); +const Link: React.StatelessComponent<LinkProps> = props => { + const { children, href } = props; + + return ( + <StyledRouterLink to={href}> + {children} + </StyledRouterLink> + ); +}; + const StyledHeader = Section.withComponent('header'); const HeaderWrap = styled(Wrap)` justify-content: space-between; |