move calendar, so it's not visible when stored

This commit is contained in:
Thomas Ruoff
2020-09-09 00:43:43 +02:00
parent 75969dc2ac
commit ec7fc60e4d
3 changed files with 30 additions and 28 deletions

View File

@@ -3,7 +3,7 @@ import classnames from 'classnames'
import useSWR from 'swr' import useSWR from 'swr'
import moment, { Moment } from 'moment' import moment, { Moment } from 'moment'
import { Calendar } from 'react-calendar-component' import { Calendar } from 'react-calendar-component'
import { dateFormatBackend } from '../helpers/date' import { dateFormatBackend } from '../../helpers/date'
const fetcher = (path: string) => fetch(path).then((r) => r.json()) const fetcher = (path: string) => fetch(path).then((r) => r.json())

View File

@@ -2,6 +2,7 @@ import Link from 'next/link'
import React, { useContext } from 'react' import React, { useContext } from 'react'
import Contact from './contact' import Contact from './contact'
import WizardStore, { WizardContext } from './context/wizardStore' import WizardStore, { WizardContext } from './context/wizardStore'
import Calendar from './calendar'
import DateSelect from './dateSelect' import DateSelect from './dateSelect'
import Reason from './reason' import Reason from './reason'
@@ -52,6 +53,8 @@ function WizardInternal() {
} }
return ( return (
<>
<Calendar />
<form <form
className="form" className="form"
onSubmit={(event) => { onSubmit={(event) => {
@@ -77,6 +80,7 @@ function WizardInternal() {
</button> </button>
</div> </div>
</form> </form>
</>
) )
} }

View File

@@ -2,7 +2,6 @@ import Head from 'next/head'
import React from 'react' import React from 'react'
import Footer from '../components/footer' import Footer from '../components/footer'
import Header from '../components/header' import Header from '../components/header'
import Calendar from '../components/calendar'
import Wizard from '../components/wizard/index' import Wizard from '../components/wizard/index'
export default function Home() { export default function Home() {
@@ -15,7 +14,6 @@ export default function Home() {
<Header /> <Header />
<main className="main"> <main className="main">
<Calendar />
<Wizard /> <Wizard />
</main> </main>
<Footer /> <Footer />