add appStore and use router for booking

This commit is contained in:
Thomas Ruoff
2020-08-19 00:59:45 +02:00
parent 194ac0aca1
commit e1d1de469b
8 changed files with 80 additions and 26 deletions

View File

@@ -1,9 +1,9 @@
import React, { useContext } from 'react'
import { WizardContext } from '../context/wizardStore'
import { AppContext } from '../context/appStore'
import Required from './required'
export default function Contact() {
const { state, onChangeEvent } = useContext(WizardContext)
const { state, onChangeEvent } = useContext(AppContext)
const { formDataChanged } = state
const { purpose, destination, org } = state.formData