move helpers out again

seems anything under pages, besides api needs to be a react component
This commit is contained in:
Thomas Ruoff
2020-08-01 16:23:48 +02:00
parent 793b499c76
commit 95242403c5
5 changed files with 3 additions and 3 deletions

View File

@@ -1,6 +1,6 @@
import { Schema } from 'mongoose'
import { getDays, dateFormat } from '../../helpers/date'
import { getDays, dateFormat } from '../../../helpers/date'
export const BookerSchema = new Schema(
{

View File

@@ -10,7 +10,7 @@ import 'react-dates/initialize'
import { DateRangePicker, SingleDatePicker } from 'react-dates'
import Required from './required'
import { dateFormat } from '../helpers/date'
import { dateFormat } from '../../helpers/date'
const fetcher = (path) => fetch(path).then((r) => r.json())

View File

@@ -1,6 +1,6 @@
import React, { useReducer, useEffect } from 'react'
import { storeFormData, loadFormData } from '../helpers/storage'
import { storeFormData, loadFormData } from '../../helpers/storage'
export const WizardContext = React.createContext()