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,26 @@
import React, { useContext } from 'react'
import { BookContext } from '../../context/book'
import Input from '../input'
export default function Contact() {
const { state, onChangeEvent } = useContext(BookContext)
const { purpose, destination } = state.formData
return (
<>
<Input
label="Zweck der Fahrt"
name="purpose"
value={purpose}
onChange={onChangeEvent}
/>
<Input
label="Ziel der Fahrt"
name="destination"
value={destination}
onChange={onChangeEvent}
/>
</>
)
}