diff options
author | Ezekiel Aquino <ezekiel@bakkenbaeck.no> | 2018-12-15 00:43:56 +0800 |
---|---|---|
committer | Ezekiel Aquino <ezekiel@bakkenbaeck.no> | 2018-12-15 00:43:56 +0800 |
commit | bdc8f9aa2ad0e75fe7530a1f81da21e66cd99c4e (patch) | |
tree | 4b794ba9ce5169d99bfd7418e09645f7fb14547e /packages/website/ts/@next/components/button.tsx | |
parent | 6db28c530066454e84738451dc66bbdf29243b2d (diff) | |
download | dexon-sol-tools-bdc8f9aa2ad0e75fe7530a1f81da21e66cd99c4e.tar.gz dexon-sol-tools-bdc8f9aa2ad0e75fe7530a1f81da21e66cd99c4e.tar.zst dexon-sol-tools-bdc8f9aa2ad0e75fe7530a1f81da21e66cd99c4e.zip |
Cleanup
Diffstat (limited to 'packages/website/ts/@next/components/button.tsx')
-rw-r--r-- | packages/website/ts/@next/components/button.tsx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/packages/website/ts/@next/components/button.tsx b/packages/website/ts/@next/components/button.tsx index 397bf39cd..6f5988e36 100644 --- a/packages/website/ts/@next/components/button.tsx +++ b/packages/website/ts/@next/components/button.tsx @@ -1,5 +1,5 @@ import * as React from 'react'; -import { Link as ReactRouterLink, NavLink as ReactRouterNavLink } from 'react-router-dom'; +import { Link as ReactRouterLink } from 'react-router-dom'; import styled from 'styled-components'; import { ThemeInterface } from 'ts/@next/components/siteWrap'; @@ -33,14 +33,14 @@ export const Button = (props: ButtonInterface) => { } = props; let linkElem; - if (props.href) { linkElem = 'a'; } - if (props.to) { linkElem = ReactRouterLink; } + if (href) { linkElem = 'a'; } + if (to) { linkElem = ReactRouterLink; } const Component = linkElem ? ButtonBase.withComponent(linkElem) : ButtonBase; return ( <Component {...props}> - {props.children} + {children} { isWithArrow && <svg width="16" height="15" fill="none" xmlns="http://www.w3.org/2000/svg"> |