aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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,