aboutsummaryrefslogtreecommitdiffstats
path: root/packages/website/ts/@next/components/button.tsx
diff options
context:
space:
mode:
authorFred Carlsen <fred@sjelfull.no>2018-12-14 18:26:59 +0800
committerFred Carlsen <fred@sjelfull.no>2018-12-14 18:34:14 +0800
commit66480ccb1e0dc72e6716060ab472b7584bfa910c (patch)
treeae43b6ac036cbf7d956f9da02a14e43af301b854 /packages/website/ts/@next/components/button.tsx
parent7a10f034960b0cbb0d39b2680e69f58e5c19ea61 (diff)
downloaddexon-sol-tools-66480ccb1e0dc72e6716060ab472b7584bfa910c.tar.gz
dexon-sol-tools-66480ccb1e0dc72e6716060ab472b7584bfa910c.tar.zst
dexon-sol-tools-66480ccb1e0dc72e6716060ab472b7584bfa910c.zip
Linting fixes
Diffstat (limited to 'packages/website/ts/@next/components/button.tsx')
-rw-r--r--packages/website/ts/@next/components/button.tsx3
1 files changed, 2 insertions, 1 deletions
diff --git a/packages/website/ts/@next/components/button.tsx b/packages/website/ts/@next/components/button.tsx
index cca4d1382..4c646e199 100644
--- a/packages/website/ts/@next/components/button.tsx
+++ b/packages/website/ts/@next/components/button.tsx
@@ -16,6 +16,7 @@ interface ButtonInterface {
hasIcon?: boolean | string;
isInline?: boolean;
href?: string;
+ type?: string;
to?: string;
onClick?: () => any;
theme?: {
@@ -57,7 +58,7 @@ const ButtonBase = styled.button<ButtonInterface>`
border: 1px solid transparent;
display: inline-block;
background-color: ${props => props.bgColor || colors.brandLight};
- background-color: ${props => (props.isTransparent || props.isWithArrow) && 'transparent'}
+ background-color: ${props => (props.isTransparent || props.isWithArrow) && 'transparent'};
border-color: ${props => (props.isTransparent && !props.isWithArrow) && 'rgba(255, 255, 255, .4)'};
color: ${props => props.isAccentColor ? props.theme.linkColor : (props.color || props.theme.textColor)};
padding: ${props => (!props.isNoPadding && !props.isWithArrow) && '18px 30px'};