From 20cc9a6c0e981aba6e969717f8c6e9144e1853cc Mon Sep 17 00:00:00 2001 From: Patrick Arminio Date: Sat, 17 Mar 2018 23:13:18 +0100 Subject: [PATCH] Fix button link definition and style --- frontend/src/components/button/index.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/frontend/src/components/button/index.tsx b/frontend/src/components/button/index.tsx index 6fb644ab14..a390ec960a 100644 --- a/frontend/src/components/button/index.tsx +++ b/frontend/src/components/button/index.tsx @@ -1,4 +1,4 @@ -import React from 'react'; +import React, { AnchorHTMLAttributes } from 'react'; import { Box } from '../box'; import styled from '../../styled'; import { ButtonVariant } from './types'; @@ -27,6 +27,7 @@ const button = ( color ${props => props.theme.timings[0]}s ease-out; cursor: pointer; text-transform: uppercase; + text-decoration: none; font-family: ${props => props.theme.fonts.button}; display: inline-block; `; @@ -52,7 +53,7 @@ const button = ( ); }; -type ButtonLinkProps = Props & {}; +type ButtonLinkProps = Props & AnchorHTMLAttributes; export const Button = (props: Props) => button(props, 'button'); export const ButtonLink = (props: ButtonLinkProps) => button(props, 'a');