aboutsummaryrefslogtreecommitdiffstats
path: root/packages/website/ts
diff options
context:
space:
mode:
authorSteve Klebanoff <steve.klebanoff@gmail.com>2018-12-18 05:44:19 +0800
committerSteve Klebanoff <steve.klebanoff@gmail.com>2018-12-18 05:44:19 +0800
commitc126d01fe3fa2f170a1c70da6ee2cb497875ef03 (patch)
treea88382e4f0fb0e0de540e7f24015f9bc2c0b7c54 /packages/website/ts
parent6d66476d35b67f91563c1a06f25fea9fc2fb4320 (diff)
downloaddexon-sol-tools-c126d01fe3fa2f170a1c70da6ee2cb497875ef03.tar
dexon-sol-tools-c126d01fe3fa2f170a1c70da6ee2cb497875ef03.tar.gz
dexon-sol-tools-c126d01fe3fa2f170a1c70da6ee2cb497875ef03.tar.bz2
dexon-sol-tools-c126d01fe3fa2f170a1c70da6ee2cb497875ef03.tar.lz
dexon-sol-tools-c126d01fe3fa2f170a1c70da6ee2cb497875ef03.tar.xz
dexon-sol-tools-c126d01fe3fa2f170a1c70da6ee2cb497875ef03.tar.zst
dexon-sol-tools-c126d01fe3fa2f170a1c70da6ee2cb497875ef03.zip
Conditional getStartedClick working on features list
Diffstat (limited to 'packages/website/ts')
-rw-r--r--packages/website/ts/@next/pages/instant.tsx21
1 files changed, 11 insertions, 10 deletions
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<Props> {
public state = {
isContactModalOpen: false,