diff options
author | August Skare <post@augustskare.no> | 2018-11-16 18:05:30 +0800 |
---|---|---|
committer | August Skare <post@augustskare.no> | 2018-11-16 18:05:30 +0800 |
commit | 54bd7df900316504e4403bc94cffd92930a6c763 (patch) | |
tree | 7b386224e5746be65bfddc094cc5b26f7c018e19 /packages/dev-tools-pages/ts/components/Button.tsx | |
parent | 5afef5fe820674abfbdf58226ed0a6920b5c74f7 (diff) | |
download | dexon-sol-tools-54bd7df900316504e4403bc94cffd92930a6c763.tar dexon-sol-tools-54bd7df900316504e4403bc94cffd92930a6c763.tar.gz dexon-sol-tools-54bd7df900316504e4403bc94cffd92930a6c763.tar.bz2 dexon-sol-tools-54bd7df900316504e4403bc94cffd92930a6c763.tar.lz dexon-sol-tools-54bd7df900316504e4403bc94cffd92930a6c763.tar.xz dexon-sol-tools-54bd7df900316504e4403bc94cffd92930a6c763.tar.zst dexon-sol-tools-54bd7df900316504e4403bc94cffd92930a6c763.zip |
fix linting + code syntax for statless components
Diffstat (limited to 'packages/dev-tools-pages/ts/components/Button.tsx')
-rw-r--r-- | packages/dev-tools-pages/ts/components/Button.tsx | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/packages/dev-tools-pages/ts/components/Button.tsx b/packages/dev-tools-pages/ts/components/Button.tsx index 2a968af28..d3b36ebfd 100644 --- a/packages/dev-tools-pages/ts/components/Button.tsx +++ b/packages/dev-tools-pages/ts/components/Button.tsx @@ -1,10 +1,8 @@ import styled from 'styled-components'; -import { colors } from '../variables'; -import { media } from 'ts/variables'; -import { withContext, Props } from './withContext'; +import { colors, media } from 'ts/variables'; -interface ButtonProps extends Props { +interface ButtonProps { large?: boolean; } @@ -17,7 +15,7 @@ const Button = font-weight: 500; white-space: nowrap; vertical-align: middle; - background-color: ${props => props.colors.secondary}; + background-color: ${props => props.theme.colors.secondary}; color: ${colors.black}; border: 0; border-radius: 5rem; @@ -37,10 +35,10 @@ const Button = `} :hover, :focus { - background-color: ${props => props.colors.secondary_alt}; + background-color: ${props => props.theme.colors.secondary_alt}; outline: 0; - } - + } + ${media.small` font-size: .875rem; padding: .5625rem 1.25rem; @@ -54,4 +52,4 @@ const Button = `} `; -export default withContext(Button); +export { Button }; |