mirror of
https://github.com/tomru/pfadi-bussle.git
synced 2026-03-03 06:27:11 +01:00
54 lines
1.3 KiB
JavaScript
54 lines
1.3 KiB
JavaScript
import { useContext } from 'react'
|
|
import { WizardContext, ACTIONS } from '../context/wizardStore'
|
|
|
|
import Form from 'react-bootstrap/Form'
|
|
import Col from 'react-bootstrap/Col'
|
|
|
|
export default function Contact() {
|
|
const { state } = useContext(WizardContext)
|
|
|
|
const { name, email, street, zip, city } = state.formData
|
|
|
|
return (
|
|
<>
|
|
<Form.Group>
|
|
<Form.Label>Name</Form.Label>
|
|
<Form.Control type="text" id="name" placeholder="Name" value={name} />
|
|
</Form.Group>
|
|
<Form.Group>
|
|
<Form.Label>E-Mail</Form.Label>
|
|
<Form.Control
|
|
type="email"
|
|
id="email"
|
|
placeholder="E-Mail"
|
|
value={email}
|
|
/>
|
|
</Form.Group>
|
|
<Form.Group>
|
|
<Form.Label>Straße</Form.Label>
|
|
<Form.Control
|
|
type="text"
|
|
id="street"
|
|
placeholder="Straße"
|
|
value={street}
|
|
/>
|
|
</Form.Group>
|
|
<Form.Row>
|
|
<Form.Group as={Col} xs={4}>
|
|
<Form.Label>PLZ</Form.Label>
|
|
<Form.Control type="text" id="plz" placeholder="PLZ" value={zip} />
|
|
</Form.Group>
|
|
<Form.Group as={Col}>
|
|
<Form.Label>Stadt</Form.Label>
|
|
<Form.Control
|
|
type="text"
|
|
id="city"
|
|
placeholder="Stadt"
|
|
value={city}
|
|
/>
|
|
</Form.Group>
|
|
</Form.Row>
|
|
</>
|
|
)
|
|
}
|