aboutsummaryrefslogtreecommitdiffstats
path: root/packages/website/ts/@next/components/modals
diff options
context:
space:
mode:
authorEzekiel Aquino <ezekiel@bakkenbaeck.no>2018-12-15 01:47:09 +0800
committerEzekiel Aquino <ezekiel@bakkenbaeck.no>2018-12-15 01:47:09 +0800
commit94c7bf47db166c8158536b54a00cb63ad8638f43 (patch)
treed2031b72a98eedb0bb64d54c542d775ca33dcb11 /packages/website/ts/@next/components/modals
parent4e8d653f1f5ff52585aa0b1ac27fd4e16d3d00bc (diff)
downloaddexon-0x-contracts-94c7bf47db166c8158536b54a00cb63ad8638f43.tar.gz
dexon-0x-contracts-94c7bf47db166c8158536b54a00cb63ad8638f43.tar.zst
dexon-0x-contracts-94c7bf47db166c8158536b54a00cb63ad8638f43.zip
More Cleanup
Diffstat (limited to 'packages/website/ts/@next/components/modals')
-rw-r--r--packages/website/ts/@next/components/modals/modal_contact.tsx35
1 files changed, 2 insertions, 33 deletions
diff --git a/packages/website/ts/@next/components/modals/modal_contact.tsx b/packages/website/ts/@next/components/modals/modal_contact.tsx
index 4e024a1a0..f2b3a954b 100644
--- a/packages/website/ts/@next/components/modals/modal_contact.tsx
+++ b/packages/website/ts/@next/components/modals/modal_contact.tsx
@@ -1,19 +1,12 @@
import * as _ from 'lodash';
import * as React from 'react';
-import {Link as RouterLink} from 'react-router-dom';
-import styled, {withTheme} from 'styled-components';
import { colors } from 'ts/style/colors';
-import {
- Dialog,
- DialogOverlay,
- DialogContent
- } from "@reach/dialog";
-import "@reach/dialog/styles.css";
+import { DialogContent, DialogOverlay } from '@reach/dialog';
+import '@reach/dialog/styles.css';
import {Button} from 'ts/@next/components/button';
-import {Column, Wrap, WrapGrid} from 'ts/@next/components/layout';
import { Icon } from 'ts/@next/components/icon';
import {Input, InputWidth} from 'ts/@next/components/modals/input';
import {Heading, Paragraph} from 'ts/@next/components/text';
@@ -25,11 +18,6 @@ interface Props {
onDismiss?: () => void;
}
-interface FormProps {
- isSuccessful?: boolean;
- isSubmitting?: boolean;
-}
-
export class ModalContact extends React.Component<Props> {
public state = {
isSubmitting: false,
@@ -118,7 +106,6 @@ export class ModalContact extends React.Component<Props> {
// const email = this.emailInput.current.value;
const email = '';
- const name = '';
const projectOrCompany = '';
const link = '';
const comments = '';
@@ -135,7 +122,6 @@ export class ModalContact extends React.Component<Props> {
},
body: JSON.stringify({ email, projectOrCompany, link, comments }),
});
- const json = await response.json();
this.setState({ ...this.state, isSuccessful: true });
} catch (e) {
@@ -145,23 +131,6 @@ export class ModalContact extends React.Component<Props> {
}
// Handle errors: {"errors":[{"location":"body","param":"name","msg":"Invalid value"},{"location":"body","param":"email","msg":"Invalid value"}]}
-const StyledWrap = styled(Wrap)`
- padding-top: 20px;
- margin-top: 30px;
- position: relative;
-
- &:before {
- content: '';
- width: 100%;
- height: 1px;
- background-color: ${props => props.theme.dropdownColor};
- opacity: 0.15;
- position: absolute;
- top: 0;
- left:0;
- }
-`;
-
const InputRow = styled.div`
width: 100%;
flex: 0 0 auto;