aboutsummaryrefslogtreecommitdiffstats
path: root/packages/website
diff options
context:
space:
mode:
authorEzekiel Aquino <ezekiel@bakkenbaeck.no>2018-12-15 01:49:08 +0800
committerEzekiel Aquino <ezekiel@bakkenbaeck.no>2018-12-15 01:49:08 +0800
commitd1f73da67541f70c55555b3fc51372f6012f64a7 (patch)
tree2923fadf2702c927ffacc75edb48d094953ea833 /packages/website
parent94c7bf47db166c8158536b54a00cb63ad8638f43 (diff)
downloaddexon-sol-tools-d1f73da67541f70c55555b3fc51372f6012f64a7.tar
dexon-sol-tools-d1f73da67541f70c55555b3fc51372f6012f64a7.tar.gz
dexon-sol-tools-d1f73da67541f70c55555b3fc51372f6012f64a7.tar.bz2
dexon-sol-tools-d1f73da67541f70c55555b3fc51372f6012f64a7.tar.lz
dexon-sol-tools-d1f73da67541f70c55555b3fc51372f6012f64a7.tar.xz
dexon-sol-tools-d1f73da67541f70c55555b3fc51372f6012f64a7.tar.zst
dexon-sol-tools-d1f73da67541f70c55555b3fc51372f6012f64a7.zip
Cleanup
Diffstat (limited to 'packages/website')
-rw-r--r--packages/website/ts/@next/components/newsletter_form.tsx13
1 files changed, 3 insertions, 10 deletions
diff --git a/packages/website/ts/@next/components/newsletter_form.tsx b/packages/website/ts/@next/components/newsletter_form.tsx
index 00bba4aec..ba163449c 100644
--- a/packages/website/ts/@next/components/newsletter_form.tsx
+++ b/packages/website/ts/@next/components/newsletter_form.tsx
@@ -3,14 +3,10 @@ import styled from 'styled-components';
import { colors } from 'ts/style/colors';
-interface Props {
-}
-
interface InputProps {
isSubmitted: boolean;
name: string;
label: string;
- type: string;
}
interface ArrowProps {
@@ -18,7 +14,7 @@ interface ArrowProps {
}
const Input: React.ReactNode = React.forwardRef((props: InputProps, ref) => {
- const { name, label, type } = props;
+ const { name, label } = props;
const id = `input-${name}`;
return (
@@ -40,7 +36,7 @@ export class NewsletterForm extends React.Component {
return (
<StyledForm onSubmit={this._onSubmitAsync.bind(this)}>
<InputWrapper>
- <Input isSubmitted={isSubmitted} name="email" type="email" label="Email Address" ref={this.emailInput} required />
+ <Input isSubmitted={isSubmitted} name="email" type="email" label="Email Address" ref={this.emailInput} required={true} />
<SubmitButton>
<Arrow isSubmitted={isSubmitted} width="22" height="17" fill="none" xmlns="http://www.w3.org/2000/svg">
@@ -71,11 +67,8 @@ export class NewsletterForm extends React.Component {
},
body: JSON.stringify({ email, referrer }),
});
- const json = await response.json();
-
- console.log(response.json());
} catch (e) {
- console.log(e);
+ // dosomething
}
}
}