move contexts all out in own toplevel dir

- rename wizard to book
This commit is contained in:
Thomas Ruoff
2021-06-07 23:51:32 +02:00
parent 92477e5325
commit dbe3904759
10 changed files with 35 additions and 35 deletions

View File

@@ -0,0 +1,58 @@
import React, { useContext } from 'react'
import { BookContext } from '../../context/book'
import Input from '../input'
export default function Contact() {
const { state, onChangeEvent } = useContext(BookContext)
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
/>
</>
)
}