diff options
author | Ezekiel Aquino <ezekiel@bakkenbaeck.no> | 2018-12-04 21:58:37 +0800 |
---|---|---|
committer | Ezekiel Aquino <ezekiel@bakkenbaeck.no> | 2018-12-04 21:58:37 +0800 |
commit | 4da419cf7591a8beb32fb5e41e31b129c5fbb99f (patch) | |
tree | 54ba3d9bc3940f526b02962967e7b65eb151f206 /packages/website/ts/@next/components/newsletterForm.tsx | |
parent | 5bf7b9b8f3fb2780e56cb11fa9b9b48939a8041d (diff) | |
download | dexon-0x-contracts-4da419cf7591a8beb32fb5e41e31b129c5fbb99f.tar dexon-0x-contracts-4da419cf7591a8beb32fb5e41e31b129c5fbb99f.tar.gz dexon-0x-contracts-4da419cf7591a8beb32fb5e41e31b129c5fbb99f.tar.bz2 dexon-0x-contracts-4da419cf7591a8beb32fb5e41e31b129c5fbb99f.tar.lz dexon-0x-contracts-4da419cf7591a8beb32fb5e41e31b129c5fbb99f.tar.xz dexon-0x-contracts-4da419cf7591a8beb32fb5e41e31b129c5fbb99f.tar.zst dexon-0x-contracts-4da419cf7591a8beb32fb5e41e31b129c5fbb99f.zip |
Fixes all lint issues, cleanup
Diffstat (limited to 'packages/website/ts/@next/components/newsletterForm.tsx')
-rw-r--r-- | packages/website/ts/@next/components/newsletterForm.tsx | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/packages/website/ts/@next/components/newsletterForm.tsx b/packages/website/ts/@next/components/newsletterForm.tsx index 422d25bec..4ff9663ba 100644 --- a/packages/website/ts/@next/components/newsletterForm.tsx +++ b/packages/website/ts/@next/components/newsletterForm.tsx @@ -5,8 +5,6 @@ import { colors } from 'ts/style/colors'; import {Button} from 'ts/@next/components/button'; -import ArrowIcon from 'ts/@next/icons/form-arrow.svg'; - interface InputProps { name: string; label: string; @@ -15,9 +13,9 @@ interface InputProps { interface Props { } -const Input = ({ ...props }) => { +const Input = (props: InputProps) => { const { name, label } = props; - const id = 'input-' + name; + const id = `input-${name}`; return ( <> @@ -31,7 +29,7 @@ export const NewsletterForm: React.StatelessComponent = (props: Props) => ( <StyledForm> <InputWrapper> <Input name="email" type="email" label="Email Address" /> - <SubmitButton hasIcon> + <SubmitButton hasIcon={true}> Submit </SubmitButton> </InputWrapper> |