Tidy up SimpleForm
This commit is contained in:
parent
6d68ee6b9a
commit
c44f82bd21
1 changed files with 1 additions and 7 deletions
|
|
@ -13,7 +13,6 @@ export default ({
|
|||
data-netlify=''
|
||||
data-netlify-honeypot='_gotcha'
|
||||
>
|
||||
{alert && <Alert>{alert}</Alert>}
|
||||
<Label className='Label'>
|
||||
<Input
|
||||
className='Input'
|
||||
|
|
@ -42,7 +41,7 @@ export default ({
|
|||
/>
|
||||
</Label>
|
||||
<Input type='text' name='_gotcha' style={{ display: 'none' }} />
|
||||
<Input type='hidden' name='subject' value={subject} />
|
||||
{subject.length && <Input type='hidden' name='subject' value={subject} />}
|
||||
<Input type='hidden' name='form-name' value={name} />
|
||||
<Button className='button' type='submit' value='Send' />
|
||||
</StyledForm>
|
||||
|
|
@ -93,11 +92,6 @@ const Input = styled.input`
|
|||
}
|
||||
`
|
||||
const Textarea = Input.withComponent('textarea')
|
||||
const Alert = styled.p`
|
||||
background: whitesmoke;
|
||||
width: 100%;
|
||||
padding: 2rem;
|
||||
`
|
||||
const Button = styled.input`
|
||||
background: ${color.primary};
|
||||
color: white;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue