mirror of
https://github.com/tomru/pfadi-bussle.git
synced 2026-03-03 06:27:11 +01:00
switch to prisma
This commit is contained in:
@@ -1,20 +1,18 @@
|
||||
import React, { useEffect, useReducer } from 'react'
|
||||
import { Prisma } from '@prisma/client'
|
||||
import { useRouter } from 'next/router'
|
||||
import { clearBookingData, loadBookingData } from '../helpers/storage'
|
||||
import { log } from '../helpers/log'
|
||||
|
||||
import { createBooking } from '../helpers/booking'
|
||||
import { Booking } from '../db/booking'
|
||||
|
||||
export type BookFormData = Omit<Booking, 'uuid' | 'calendarEventId'>
|
||||
|
||||
type BookingProviderState = {
|
||||
postData?: boolean
|
||||
postDataError?: string
|
||||
postDataSuccess?: boolean
|
||||
formData: BookFormData
|
||||
formData: Prisma.BookingCreateInput,
|
||||
formDataChanged: string[]
|
||||
booking?: Booking
|
||||
booking?: Prisma.BookingCreateInput,
|
||||
dataStored: boolean
|
||||
dataStoredLoaded: boolean
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user