address breaking changes

This commit is contained in:
Thomas Ruoff
2022-03-14 22:35:30 +01:00
committed by Thomas Ruoff
parent 8222e04880
commit ef7f80fd92
10 changed files with 41 additions and 46 deletions

View File

@@ -5,7 +5,7 @@ import { clearBookingData, loadBookingData } from '../helpers/storage'
import { createBooking } from '../helpers/booking'
import { Booking } from '../db/booking'
export type BookFormData = Omit<Booking, 'uuid' | 'calendarEventId'>
export type BookFormData = Omit<Booking, 'uuid' | 'calendarEventId' | 'start' | 'end'>
type BookingProviderState = {
postData?: boolean
@@ -103,8 +103,8 @@ const initialState: BookingProviderState = {
postDataError: null,
postDataSuccess: null,
formData: {
startDate: '',
endDate: '',
startDate: null,
endDate: null,
purpose: '',
org: '',
destination: '',