aboutsummaryrefslogtreecommitdiffstats
path: root/packages/website/ts/@next/components/modals
diff options
context:
space:
mode:
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"}]}