aboutsummaryrefslogtreecommitdiffstats
path: root/packages/website/ts/@next/components/newsletter_form.tsx
diff options
context:
space:
mode:
authorFred Carlsen <fred@sjelfull.no>2018-12-14 18:26:59 +0800
committerFred Carlsen <fred@sjelfull.no>2018-12-14 18:34:14 +0800
commit66480ccb1e0dc72e6716060ab472b7584bfa910c (patch)
treeae43b6ac036cbf7d956f9da02a14e43af301b854 /packages/website/ts/@next/components/newsletter_form.tsx
parent7a10f034960b0cbb0d39b2680e69f58e5c19ea61 (diff)
downloaddexon-0x-contracts-66480ccb1e0dc72e6716060ab472b7584bfa910c.tar.gz
dexon-0x-contracts-66480ccb1e0dc72e6716060ab472b7584bfa910c.tar.zst
dexon-0x-contracts-66480ccb1e0dc72e6716060ab472b7584bfa910c.zip
Linting fixes
Diffstat (limited to 'packages/website/ts/@next/components/newsletter_form.tsx')
-rw-r--r--packages/website/ts/@next/components/newsletter_form.tsx6
1 files changed, 3 insertions, 3 deletions
diff --git a/packages/website/ts/@next/components/newsletter_form.tsx b/packages/website/ts/@next/components/newsletter_form.tsx
index 455e7b54c..381dca53b 100644
--- a/packages/website/ts/@next/components/newsletter_form.tsx
+++ b/packages/website/ts/@next/components/newsletter_form.tsx
@@ -27,7 +27,7 @@ const Input: React.ReactNode = React.forwardRef((props: InputProps, ref) => {
<StyledInput ref={ref} id={id} placeholder={label} {...props} />
</InnerInputWrapper>
);
-};
+});
export class NewsletterForm extends React.Component {
public emailInput = React.createRef();
@@ -38,7 +38,7 @@ export class NewsletterForm extends React.Component {
const {isSubmitted} = this.state;
return (
- <StyledForm onSubmit={this._onSubmit.bind(this)}>
+ <StyledForm onSubmit={this._onSubmitAsync.bind(this)}>
<InputWrapper>
<Input isSubmitted={isSubmitted} name="email" type="email" label="Email Address" ref={this.emailInput} required />
@@ -54,7 +54,7 @@ export class NewsletterForm extends React.Component {
);
}
- private async _onSubmit(e) {
+ private async _onSubmitAsync(e: Event): Promise<void> {
e.preventDefault();
const email = this.emailInput.current.value;