diff options
author | Fred Carlsen <fred@sjelfull.no> | 2018-11-29 21:18:04 +0800 |
---|---|---|
committer | Fred Carlsen <fred@sjelfull.no> | 2018-11-29 21:18:04 +0800 |
commit | 8bcb5b00ba464188b790ff61192d441842fb6b25 (patch) | |
tree | d5bd9befa1793745af2bbc6a26caa74a5ef89e3f /packages/website/ts/@next/components | |
parent | d0fa615f32ae4214c49d883078b6b532d28d0163 (diff) | |
download | dexon-0x-contracts-8bcb5b00ba464188b790ff61192d441842fb6b25.tar.gz dexon-0x-contracts-8bcb5b00ba464188b790ff61192d441842fb6b25.tar.zst dexon-0x-contracts-8bcb5b00ba464188b790ff61192d441842fb6b25.zip |
Add transparent button
Diffstat (limited to 'packages/website/ts/@next/components')
-rw-r--r-- | packages/website/ts/@next/components/button.tsx | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/packages/website/ts/@next/components/button.tsx b/packages/website/ts/@next/components/button.tsx index df784b8ef..050d87bb0 100644 --- a/packages/website/ts/@next/components/button.tsx +++ b/packages/website/ts/@next/components/button.tsx @@ -3,7 +3,7 @@ import styled from 'styled-components'; import { colors } from 'ts/style/colors'; -export interface Props extends ButtonInterface { +export interface Props { text: string; transparent?: boolean; inline?: boolean; @@ -43,11 +43,12 @@ export const Button: React.StatelessComponent<Props> = ({ ...props }) => ( ); export const ButtonTransparent: React.StatelessComponent<Props> = ({ ...props }) => ( - <StyledButton transparent={true} {...props}> + <Button transparent={true} {...props}> <Text>{props.text}</Text> - </StyledButton> + </Button> ); Button.defaultProps = { transparent: false, + inline: false, }; |