diff options
author | Ezekiel Aquino <ezekiel@bakkenbaeck.no> | 2018-12-03 18:15:34 +0800 |
---|---|---|
committer | Ezekiel Aquino <ezekiel@bakkenbaeck.no> | 2018-12-03 18:15:34 +0800 |
commit | 1fab30ef80b58435405bce8cddaf375f4c5a9047 (patch) | |
tree | 5992d64dd3d54a19e62cb7ea15930c9f2eada0ae /packages/website/ts/@next/components/header.tsx | |
parent | 62eba1e8202925b88932bf10b65c4239131185e5 (diff) | |
download | dexon-0x-contracts-1fab30ef80b58435405bce8cddaf375f4c5a9047.tar.gz dexon-0x-contracts-1fab30ef80b58435405bce8cddaf375f4c5a9047.tar.zst dexon-0x-contracts-1fab30ef80b58435405bce8cddaf375f4c5a9047.zip |
A bit of formatting, centeres instant text
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; |