diff options
author | Ezekiel Aquino <ezekiel@bakkenbaeck.no> | 2018-12-13 23:39:03 +0800 |
---|---|---|
committer | Ezekiel Aquino <ezekiel@bakkenbaeck.no> | 2018-12-13 23:39:19 +0800 |
commit | 81690d1ce508fc40ab90aff3539359efe7a93dba (patch) | |
tree | 4b1a0264785eaae52245845021aa1ae7ff4e1209 /packages/website/ts/@next/components/blockIconLink.tsx | |
parent | f846e2f6e07bdcfc410e44c86528ba1cefe94810 (diff) | |
download | dexon-sol-tools-81690d1ce508fc40ab90aff3539359efe7a93dba.tar dexon-sol-tools-81690d1ce508fc40ab90aff3539359efe7a93dba.tar.gz dexon-sol-tools-81690d1ce508fc40ab90aff3539359efe7a93dba.tar.bz2 dexon-sol-tools-81690d1ce508fc40ab90aff3539359efe7a93dba.tar.lz dexon-sol-tools-81690d1ce508fc40ab90aff3539359efe7a93dba.tar.xz dexon-sol-tools-81690d1ce508fc40ab90aff3539359efe7a93dba.tar.zst dexon-sol-tools-81690d1ce508fc40ab90aff3539359efe7a93dba.zip |
Removes <Link> component, clean up Button.tsx
Diffstat (limited to 'packages/website/ts/@next/components/blockIconLink.tsx')
-rw-r--r-- | packages/website/ts/@next/components/blockIconLink.tsx | 37 |
1 files changed, 11 insertions, 26 deletions
diff --git a/packages/website/ts/@next/components/blockIconLink.tsx b/packages/website/ts/@next/components/blockIconLink.tsx index 42b260731..7033ec88d 100644 --- a/packages/website/ts/@next/components/blockIconLink.tsx +++ b/packages/website/ts/@next/components/blockIconLink.tsx @@ -1,15 +1,15 @@ import * as React from 'react'; import styled from 'styled-components'; -import {Button, Link} from 'ts/@next/components/button'; +import {Button} from 'ts/@next/components/button'; import {Icon} from 'ts/@next/components/icon'; interface Props { icon: string; title: string; linkLabel: string; - linkUrl?: string; - onClick?: () => void; + linkUrl: string; + linkAction: () => void; } export const BlockIconLink = (props: Props) => ( @@ -25,29 +25,14 @@ export const BlockIconLink = (props: Props) => ( {props.title} </Title> - {props.linkUrl && - <Link - isWithArrow={true} - isTransparent={true} - isNoBorder={true} - href={props.linkUrl} - onClick={props.onClick} - > - {props.linkLabel} - </Link> - } - - {props.onClick && - <Button - isWithArrow={true} - isTransparent={true} - isNoBorder={true} - href={props.linkUrl} - onClick={props.onClick} - > - {props.linkLabel} - </Button> - } + <Button + isWithArrow={true} + isTransparent={true} + href={props.linkUrl} + onClick={props.linkAction} + > + {props.linkLabel} + </Button> </div> </Wrap> ); |