aboutsummaryrefslogtreecommitdiffstats
path: root/packages/website/ts/@next/pages
diff options
context:
space:
mode:
authorEzekiel Aquino <ezekiel@bakkenbaeck.no>2018-12-14 21:59:22 +0800
committerEzekiel Aquino <ezekiel@bakkenbaeck.no>2018-12-14 21:59:35 +0800
commitef403108fb0f5ed2798bc7eb59fa487c323ac1fb (patch)
treefdd7fd851deb74685bcd1fe602ddc505b1b9e6b6 /packages/website/ts/@next/pages
parent8a06dccbbf7e95b4223446cbd018f55b90214a62 (diff)
downloaddexon-sol-tools-ef403108fb0f5ed2798bc7eb59fa487c323ac1fb.tar
dexon-sol-tools-ef403108fb0f5ed2798bc7eb59fa487c323ac1fb.tar.gz
dexon-sol-tools-ef403108fb0f5ed2798bc7eb59fa487c323ac1fb.tar.bz2
dexon-sol-tools-ef403108fb0f5ed2798bc7eb59fa487c323ac1fb.tar.lz
dexon-sol-tools-ef403108fb0f5ed2798bc7eb59fa487c323ac1fb.tar.xz
dexon-sol-tools-ef403108fb0f5ed2798bc7eb59fa487c323ac1fb.tar.zst
dexon-sol-tools-ef403108fb0f5ed2798bc7eb59fa487c323ac1fb.zip
Edits CTA landing section
Diffstat (limited to 'packages/website/ts/@next/pages')
-rw-r--r--packages/website/ts/@next/pages/landing.tsx9
1 files changed, 4 insertions, 5 deletions
diff --git a/packages/website/ts/@next/pages/landing.tsx b/packages/website/ts/@next/pages/landing.tsx
index aa3e829b5..6788e08be 100644
--- a/packages/website/ts/@next/pages/landing.tsx
+++ b/packages/website/ts/@next/pages/landing.tsx
@@ -29,18 +29,17 @@ export class NextLanding extends React.Component<Props> {
<SectionLandingHero />
<SectionLandingAbout />
<SectionLandingClients />
- <SectionLandingCta onContactClick={this._onOpenContactModal.bind(this)} />
- <ModalContact isOpen={this.state.isContactModalOpen} onDismiss={this._onDismissContactModal.bind(this)} />
+ <SectionLandingCta onContactClick={this._onOpenContactModal} />
+ <ModalContact isOpen={this.state.isContactModalOpen} onDismiss={this._onDismissContactModal} />
</SiteWrap>
);
}
- private _onOpenContactModal(e: Event): void {
- e.preventDefault();
+ private _onOpenContactModal = (): void => {
this.setState({ isContactModalOpen: true });
}
- private _onDismissContactModal(): void {
+ private _onDismissContactModal = (): void => {
this.setState({ isContactModalOpen: false });
}
}