move all wizard specific stuff to components/wizard

This commit is contained in:
Thomas Ruoff
2020-08-22 00:25:14 +02:00
parent 1df26814ba
commit 1bf7c7b801
9 changed files with 23 additions and 16 deletions

View File

@@ -1,6 +1,5 @@
import React, { useContext } from 'react'
import { WizardContext } from '../../context/wizardStore'
import Footer from '../../components/footer'
// TODO: load booking somehow if we navigate to booking

View File

@@ -2,8 +2,9 @@ import React from 'react'
import Head from 'next/head'
import Wizard from '../components/wizard'
import Header from '../components/header'
import Footer from '../components/footer'
import Wizard from '../components/wizard/index'
export default function Home() {
return (
@@ -13,16 +14,10 @@ export default function Home() {
<link rel="icon" href="/favicon.ico" />
</Head>
<Header />
<main className="flex-grow">
<h1 className="text-3xl">Pfadi Bussle Buchen</h1>
<p className="mb-8">
Du willst das Pfadi Bussle buchen? Hier bist du richtig!
</p>
<Wizard />
</main>
<Footer />
</div>
)