Files
pfadi-bussle/components/reason.js
2020-07-29 00:01:54 +02:00

46 lines
1.1 KiB
JavaScript

import { useContext } from 'react'
import { WizardContext, ACTIONS } from '../context/wizardStore'
import Form from 'react-bootstrap/Form'
export default function Contact() {
const { state, onChangeEvent } = useContext(WizardContext)
const { purpose, destination, org } = state.formData
return (
<>
<Form.Group>
<Form.Label>Zweck der Fahrt</Form.Label>
<Form.Control
type="text"
name="purpose"
placeholder="Zweck der Fahrt"
value={purpose}
onChange={onChangeEvent}
/>
</Form.Group>
<Form.Group>
<Form.Label>Verein</Form.Label>
<Form.Control
type="text"
name="org"
placeholder="Verein"
value={org}
onChange={onChangeEvent}
/>
</Form.Group>
<Form.Group>
<Form.Label>Ziel der Fahrt</Form.Label>
<Form.Control
type="text"
name="destination"
placeholder="Fahrtziel"
value={destination}
onChange={onChangeEvent}
/>
</Form.Group>
</>
)
}