diff options
author | Steve Klebanoff <steve.klebanoff@gmail.com> | 2018-12-19 05:29:21 +0800 |
---|---|---|
committer | Steve Klebanoff <steve.klebanoff@gmail.com> | 2018-12-19 05:29:21 +0800 |
commit | 67521da5c1dcb39d6f0349e67eb05b17c3771a71 (patch) | |
tree | bd2102b39236adbf20ecced1d5731564da595692 /packages/website/ts/@next | |
parent | 9bd71aeeffbadebb41756a605ef6a0aacbfd47c4 (diff) | |
download | dexon-sol-tools-67521da5c1dcb39d6f0349e67eb05b17c3771a71.tar dexon-sol-tools-67521da5c1dcb39d6f0349e67eb05b17c3771a71.tar.gz dexon-sol-tools-67521da5c1dcb39d6f0349e67eb05b17c3771a71.tar.bz2 dexon-sol-tools-67521da5c1dcb39d6f0349e67eb05b17c3771a71.tar.lz dexon-sol-tools-67521da5c1dcb39d6f0349e67eb05b17c3771a71.tar.xz dexon-sol-tools-67521da5c1dcb39d6f0349e67eb05b17c3771a71.tar.zst dexon-sol-tools-67521da5c1dcb39d6f0349e67eb05b17c3771a71.zip |
useAnchorTag -> shouldUseAnchorTag
Diffstat (limited to 'packages/website/ts/@next')
-rw-r--r-- | packages/website/ts/@next/components/button.tsx | 6 | ||||
-rw-r--r-- | packages/website/ts/@next/components/definition.tsx | 4 | ||||
-rw-r--r-- | packages/website/ts/@next/pages/ecosystem.tsx | 4 | ||||
-rw-r--r-- | packages/website/ts/@next/pages/instant.tsx | 2 |
4 files changed, 8 insertions, 8 deletions
diff --git a/packages/website/ts/@next/components/button.tsx b/packages/website/ts/@next/components/button.tsx index 790e31468..675f69308 100644 --- a/packages/website/ts/@next/components/button.tsx +++ b/packages/website/ts/@next/components/button.tsx @@ -23,14 +23,14 @@ interface ButtonInterface { to?: string; onClick?: () => any; theme?: ThemeInterface; - useAnchorTag?: boolean; + shouldUseAnchorTag?: boolean; } export const Button = (props: ButtonInterface) => { - const { children, href, isWithArrow, to, useAnchorTag, target } = props; + const { children, href, isWithArrow, to, shouldUseAnchorTag, target } = props; let linkElem; - if (href || useAnchorTag) { + if (href || shouldUseAnchorTag) { linkElem = 'a'; } if (to) { diff --git a/packages/website/ts/@next/components/definition.tsx b/packages/website/ts/@next/components/definition.tsx index 12c22a5d6..8adef8d54 100644 --- a/packages/website/ts/@next/components/definition.tsx +++ b/packages/website/ts/@next/components/definition.tsx @@ -9,7 +9,7 @@ interface Action { label: string; url?: string; onClick?: () => void; - useAnchorTag?: boolean; + shouldUseAnchorTag?: boolean; } interface Props { @@ -57,7 +57,7 @@ export const Definition = (props: Props) => ( onClick={item.onClick} isWithArrow={true} isAccentColor={true} - useAnchorTag={item.useAnchorTag} + shouldUseAnchorTag={item.shouldUseAnchorTag} target="_blank" > {item.label} diff --git a/packages/website/ts/@next/pages/ecosystem.tsx b/packages/website/ts/@next/pages/ecosystem.tsx index ab73cc52f..3d3e219a2 100644 --- a/packages/website/ts/@next/pages/ecosystem.tsx +++ b/packages/website/ts/@next/pages/ecosystem.tsx @@ -69,7 +69,7 @@ export const NextEcosystem = () => ( href={constants.URL_ECOSYSTEM_APPLY} isWithArrow={true} isAccentColor={true} - useAnchorTag={true} + shouldUseAnchorTag={true} > Apply now </Button> @@ -77,7 +77,7 @@ export const NextEcosystem = () => ( href={constants.URL_ECOSYSTEM_BLOG_POST} isWithArrow={true} isAccentColor={true} - useAnchorTag={true} + shouldUseAnchorTag={true} target="_blank" > Learn More diff --git a/packages/website/ts/@next/pages/instant.tsx b/packages/website/ts/@next/pages/instant.tsx index 94633116f..056935189 100644 --- a/packages/website/ts/@next/pages/instant.tsx +++ b/packages/website/ts/@next/pages/instant.tsx @@ -39,7 +39,7 @@ const featuresData = [ { label: 'Get Started', onClick: getStartedClick, - useAnchorTag: true, + shouldUseAnchorTag: true, }, { label: 'Explore the Docs', |