mirror of
https://github.com/tomru/pfadi-bussle.git
synced 2026-03-03 22:47:15 +01:00
38 lines
935 B
JavaScript
38 lines
935 B
JavaScript
import { useContext } from 'react'
|
|
import { WizardContext, ACTIONS } from '../context/wizardStore'
|
|
|
|
import Form from 'react-bootstrap/Form'
|
|
|
|
export default function Contact() {
|
|
const { state } = useContext(WizardContext)
|
|
|
|
const { purpose, destination, org } = state.formData
|
|
|
|
return (
|
|
<>
|
|
<Form.Group>
|
|
<Form.Label>Zweck der Fahrt</Form.Label>
|
|
<Form.Control
|
|
type="text"
|
|
id="purpose"
|
|
placeholder="Zweck der Fahrt"
|
|
value={purpose}
|
|
/>
|
|
</Form.Group>
|
|
<Form.Group>
|
|
<Form.Label>Verein</Form.Label>
|
|
<Form.Control type="text" id="org" placeholder="Verein" value={org} />
|
|
</Form.Group>
|
|
<Form.Group>
|
|
<Form.Label>Ziel der Fahrt</Form.Label>
|
|
<Form.Control
|
|
type="text"
|
|
id="destination"
|
|
placeholder="Fahrtziel"
|
|
value={destination}
|
|
/>
|
|
</Form.Group>
|
|
</>
|
|
)
|
|
}
|