mirror of
https://github.com/tomru/pfadi-bussle.git
synced 2026-03-03 06:27:11 +01:00
move contexts all out in own toplevel dir
- rename wizard to book
This commit is contained in:
26
components/book/reason.tsx
Normal file
26
components/book/reason.tsx
Normal 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}
|
||||
/>
|
||||
</>
|
||||
)
|
||||
}
|
||||
Reference in New Issue
Block a user