From b552c2bd0c5090629a96bc6b0e032cb85d9c52b3 Mon Sep 17 00:00:00 2001 From: Ezekiel Aquino Date: Tue, 4 Dec 2018 17:00:30 +0100 Subject: Cleanup --- packages/website/ts/@next/components/button.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'packages') 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` 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} ); -}); +}; // Added this, & + & doesnt really work since we switch with element types... export const ButtonWrap = styled.div` -- cgit v1.2.3