Files
pfadi-bussle/components/wizard/contact.tsx
Thomas Ruoff 650a7374ff add phone
2020-11-08 23:04:14 +01:00

59 lines
1.2 KiB
TypeScript

import React, { useContext } from 'react'
import { WizardContext } from './context/wizardStore'
import Input from '../input'
export default function Contact() {
const { state, onChangeEvent } = useContext(WizardContext)
const { org, name, email, phone, street, zip, city } = state.formData
return (
<>
<Input label="Verein" name="org" value={org} onChange={onChangeEvent} />
<Input
label="Name"
required
name="name"
value={name}
onChange={onChangeEvent}
/>
<Input
label="E-Mail"
type="email"
name="email"
value={email}
onChange={onChangeEvent}
required
/>
<Input
label="Telefon"
type="phone"
name="phone"
value={phone}
onChange={onChangeEvent}
/>
<Input
label="Straße"
name="street"
value={street}
onChange={onChangeEvent}
required
/>
<Input
label="PLZ"
name="zip"
value={zip}
onChange={onChangeEvent}
required
/>
<Input
label="Stadt"
name="city"
value={city}
onChange={onChangeEvent}
required
/>
</>
)
}