aboutsummaryrefslogtreecommitdiffstats
path: root/packages/website/ts/@next/components/modals
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/modals
parent7a10f034960b0cbb0d39b2680e69f58e5c19ea61 (diff)
downloaddexon-sol-tools-66480ccb1e0dc72e6716060ab472b7584bfa910c.tar
dexon-sol-tools-66480ccb1e0dc72e6716060ab472b7584bfa910c.tar.gz
dexon-sol-tools-66480ccb1e0dc72e6716060ab472b7584bfa910c.tar.bz2
dexon-sol-tools-66480ccb1e0dc72e6716060ab472b7584bfa910c.tar.lz
dexon-sol-tools-66480ccb1e0dc72e6716060ab472b7584bfa910c.tar.xz
dexon-sol-tools-66480ccb1e0dc72e6716060ab472b7584bfa910c.tar.zst
dexon-sol-tools-66480ccb1e0dc72e6716060ab472b7584bfa910c.zip
Linting fixes
Diffstat (limited to 'packages/website/ts/@next/components/modals')
-rw-r--r--packages/website/ts/@next/components/modals/input.tsx2
-rw-r--r--packages/website/ts/@next/components/modals/modal_contact.tsx12
2 files changed, 3 insertions, 11 deletions
diff --git a/packages/website/ts/@next/components/modals/input.tsx b/packages/website/ts/@next/components/modals/input.tsx
index 351df105b..c6f0f8c36 100644
--- a/packages/website/ts/@next/components/modals/input.tsx
+++ b/packages/website/ts/@next/components/modals/input.tsx
@@ -10,7 +10,7 @@ export enum InputWidth {
interface InputProps {
name: string;
- width: InputWidth;
+ width?: InputWidth;
label: string;
type?: string;
}
diff --git a/packages/website/ts/@next/components/modals/modal_contact.tsx b/packages/website/ts/@next/components/modals/modal_contact.tsx
index 7b976451d..4e024a1a0 100644
--- a/packages/website/ts/@next/components/modals/modal_contact.tsx
+++ b/packages/website/ts/@next/components/modals/modal_contact.tsx
@@ -51,7 +51,7 @@ export class ModalContact extends React.Component<Props> {
onDismiss={onDismiss}
>
<StyledDialogContent>
- <Form onSubmit={this._onSubmit.bind(this)} isSuccessful={isSuccessful}>
+ <Form onSubmit={this._onSubmitAsync.bind(this)} isSuccessful={isSuccessful}>
<Heading color={colors.textDarkPrimary} size={34} asElement="h2">Contact the 0x Core Team</Heading>
<Paragraph isMuted={true} color={colors.textDarkPrimary}>If you're considering building on 0x, we're happy to answer your questions. Fill out the form so we can connect you with the right person to help you get started.</Paragraph>
<InputRow>
@@ -113,7 +113,7 @@ export class ModalContact extends React.Component<Props> {
</>
);
}
- private async _onSubmit(e): void {
+ private async _onSubmitAsync(e: Event): Promise<void> {
e.preventDefault();
// const email = this.emailInput.current.value;
@@ -138,18 +138,10 @@ export class ModalContact extends React.Component<Props> {
const json = await response.json();
this.setState({ ...this.state, isSuccessful: true });
-
- console.log(response);
} catch (e) {
this.setState({ ...this.state, errors: [] });
- console.log(e);
}
}
- private async _onDone(e): void {
- e.preventDefault();
-
- this.props.onDismiss();
- }
}
// Handle errors: {"errors":[{"location":"body","param":"name","msg":"Invalid value"},{"location":"body","param":"email","msg":"Invalid value"}]}