From c126d01fe3fa2f170a1c70da6ee2cb497875ef03 Mon Sep 17 00:00:00 2001 From: Steve Klebanoff Date: Mon, 17 Dec 2018 13:44:19 -0800 Subject: Conditional getStartedClick working on features list --- packages/website/ts/@next/pages/instant.tsx | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) (limited to 'packages/website/ts/@next') diff --git a/packages/website/ts/@next/pages/instant.tsx b/packages/website/ts/@next/pages/instant.tsx index 26a296977..9c820a4e6 100644 --- a/packages/website/ts/@next/pages/instant.tsx +++ b/packages/website/ts/@next/pages/instant.tsx @@ -20,6 +20,15 @@ import { ModalContact } from '../components/modals/modal_contact'; const CONFIGURATOR_MIN_WIDTH_PX = 1050; +export const getStartedClick = () => { + if (window.innerWidth < CONFIGURATOR_MIN_WIDTH_PX) { + utils.openUrl(`${WebsitePaths.Wiki}#Get-Started-With-Instant`); + } else { + sharedUtils.setUrlHash('configurator'); + sharedUtils.scrollToHash('configurator', ''); + } +}; + const featuresData = [ { title: 'Support ERC-20 and ERC-721 tokens', @@ -29,7 +38,8 @@ const featuresData = [ links: [ { label: 'Get Started', - url: '#', + onClick: getStartedClick, + useAnchorTag: true, }, { label: 'Explore the Docs', @@ -75,15 +85,6 @@ interface Props { }; } -export const getStartedClick = () => { - if (window.innerWidth < CONFIGURATOR_MIN_WIDTH_PX) { - utils.openUrl(`${WebsitePaths.Wiki}#Get-Started-With-Instant`); - } else { - sharedUtils.setUrlHash('configurator'); - sharedUtils.scrollToHash('configurator', ''); - } -}; - export class Next0xInstant extends React.Component { public state = { isContactModalOpen: false, -- cgit v1.2.3