mirror of
https://github.com/tomru/pfadi-bussle.git
synced 2026-03-04 06:57:12 +01:00
move calendar, so it's not visible when stored
This commit is contained in:
@@ -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())
|
||||||
|
|
||||||
@@ -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>
|
||||||
|
</>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -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 />
|
||||||
|
|||||||
Reference in New Issue
Block a user