aboutsummaryrefslogtreecommitdiffstats
path: root/packages/website/ts/@next/components
diff options
context:
space:
mode:
Diffstat (limited to 'packages/website/ts/@next/components')
-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
}
}
}