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 moment, { Moment } from 'moment'
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())

View File

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

View File

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