add a wizard

This commit is contained in:
Thomas Ruoff
2020-07-06 00:27:02 +02:00
parent 298427b777
commit cbfb421c02
6 changed files with 157 additions and 136 deletions

View File

@@ -1,18 +1,14 @@
import { useContext } from 'react'
import { AppContext, ACTIONS } from '../context/appStore'
import { WizardContext, ACTIONS } from '../context/wizardStore'
import Form from 'react-bootstrap/Form'
import Col from 'react-bootstrap/Col'
export default function Contact() {
const { state, dispatch } = useContext(AppContext)
const { state, dispatch } = useContext(WizardContext)
const { multipleDays, startDate, endDate } = state
if (!startDate || (multipleDays && !endDate)) {
return null
}
return (
<>
<Form.Group>