diff --git a/components/calendar.tsx b/components/wizard/calendar.tsx similarity index 97% rename from components/calendar.tsx rename to components/wizard/calendar.tsx index 688b480..901250f 100644 --- a/components/calendar.tsx +++ b/components/wizard/calendar.tsx @@ -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()) diff --git a/components/wizard/index.tsx b/components/wizard/index.tsx index 07839cc..ec02566 100644 --- a/components/wizard/index.tsx +++ b/components/wizard/index.tsx @@ -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,31 +53,34 @@ function WizardInternal() { } return ( -
+ <> +