diff options
author | Ezekiel Aquino <ezekiel@bakkenbaeck.no> | 2018-12-05 00:00:30 +0800 |
---|---|---|
committer | Ezekiel Aquino <ezekiel@bakkenbaeck.no> | 2018-12-05 00:00:30 +0800 |
commit | b552c2bd0c5090629a96bc6b0e032cb85d9c52b3 (patch) | |
tree | 15f42d6a3110a6460742bfffacdd7b8341f49558 /packages/website/ts | |
parent | ae9614ba36e79bb6dd6421f368dec1ef22e5756a (diff) | |
download | dexon-sol-tools-b552c2bd0c5090629a96bc6b0e032cb85d9c52b3.tar dexon-sol-tools-b552c2bd0c5090629a96bc6b0e032cb85d9c52b3.tar.gz dexon-sol-tools-b552c2bd0c5090629a96bc6b0e032cb85d9c52b3.tar.bz2 dexon-sol-tools-b552c2bd0c5090629a96bc6b0e032cb85d9c52b3.tar.lz dexon-sol-tools-b552c2bd0c5090629a96bc6b0e032cb85d9c52b3.tar.xz dexon-sol-tools-b552c2bd0c5090629a96bc6b0e032cb85d9c52b3.tar.zst dexon-sol-tools-b552c2bd0c5090629a96bc6b0e032cb85d9c52b3.zip |
Cleanup
Diffstat (limited to 'packages/website/ts')
-rw-r--r-- | packages/website/ts/@next/components/button.tsx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/packages/website/ts/@next/components/button.tsx b/packages/website/ts/@next/components/button.tsx index bd7f07d99..b2ce9eb73 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, withRouter } from 'react-router-dom'; +import { Link as ReactRouterLink } from 'react-router-dom'; import styled from 'styled-components'; import { colors } from 'ts/style/colors'; @@ -32,7 +32,7 @@ export const Button = styled.button<ButtonInterface>` text-decoration: none; `; -export const Link = withRouter((props: ButtonInterface) => { +export const Link = (props: ButtonInterface) => { const { children, href, @@ -44,7 +44,7 @@ export const Link = withRouter((props: ButtonInterface) => { {children} </Component> ); -}); +}; // Added this, & + & doesnt really work since we switch with element types... export const ButtonWrap = styled.div` |