mirror of
https://github.com/tomru/pfadi-bussle.git
synced 2026-03-03 06:27:11 +01:00
ok, bad idea. moving everything that is not a page out of pages
This commit is contained in:
@@ -10,7 +10,7 @@ import 'react-dates/initialize'
|
|||||||
import { DateRangePicker, SingleDatePicker } from 'react-dates'
|
import { DateRangePicker, SingleDatePicker } from 'react-dates'
|
||||||
|
|
||||||
import Required from './required'
|
import Required from './required'
|
||||||
import { dateFormat } from '../../helpers/date'
|
import { dateFormat } from '../helpers/date'
|
||||||
|
|
||||||
const fetcher = (path) => fetch(path).then((r) => r.json())
|
const fetcher = (path) => fetch(path).then((r) => r.json())
|
||||||
|
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
import React, { useReducer, useEffect } from 'react'
|
import React, { useReducer, useEffect } from 'react'
|
||||||
|
|
||||||
import { storeFormData, loadFormData } from '../../helpers/storage'
|
import { storeFormData, loadFormData } from '../helpers/storage'
|
||||||
|
|
||||||
export const WizardContext = React.createContext()
|
export const WizardContext = React.createContext()
|
||||||
|
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
import { Schema } from 'mongoose'
|
import { Schema } from 'mongoose'
|
||||||
|
|
||||||
import { getDays, dateFormat } from '../../../helpers/date'
|
import { getDays, dateFormat } from '../helpers/date'
|
||||||
|
|
||||||
export const BookerSchema = new Schema(
|
export const BookerSchema = new Schema(
|
||||||
{
|
{
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
import { createBooking } from './db/index'
|
import { createBooking } from '../../db/index'
|
||||||
import { Error } from 'mongoose'
|
import { Error } from 'mongoose'
|
||||||
|
|
||||||
export default async function userHandler(req, res) {
|
export default async function userHandler(req, res) {
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
// Next.js API route support: https://nextjs.org/docs/api-routes/introduction
|
// Next.js API route support: https://nextjs.org/docs/api-routes/introduction
|
||||||
|
|
||||||
import { getBookedDays } from './db/index'
|
import { getBookedDays } from '../../db/index'
|
||||||
|
|
||||||
export default async function useHandler(req, res) {
|
export default async function useHandler(req, res) {
|
||||||
const { method } = req
|
const { method } = req
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import Head from 'next/head'
|
import Head from 'next/head'
|
||||||
|
|
||||||
import Wizard from './components/wizard'
|
import Wizard from '../components/wizard'
|
||||||
|
|
||||||
export default function Home() {
|
export default function Home() {
|
||||||
return (
|
return (
|
||||||
|
|||||||
Reference in New Issue
Block a user