feat: refactor of my stay
This commit is contained in:
committed by
Simon.Emanuelsson
parent
b5deb84b33
commit
ec087a3d15
@@ -2,7 +2,7 @@ import { produce } from "immer"
|
||||
import { useContext } from "react"
|
||||
import { create, useStore } from "zustand"
|
||||
|
||||
import { clearAncillarySessionData } from "@/components/HotelReservation/MyStay/Ancillaries/utils"
|
||||
import { clearAncillarySessionData } from "@/components/HotelReservation/MyStay/utils/ancillaries"
|
||||
import { AddAncillaryContext } from "@/contexts/AddAncillary"
|
||||
|
||||
import type {
|
||||
@@ -49,18 +49,18 @@ export interface AddAncillaryState {
|
||||
selectedCategory: string
|
||||
selectCategory: (category: string) => void
|
||||
ancillariesBySelectedCategory: Ancillary["ancillaryContent"]
|
||||
openModal: VoidFunction
|
||||
closeModal: VoidFunction
|
||||
prevStep: VoidFunction
|
||||
openModal: () => void
|
||||
closeModal: () => void
|
||||
prevStep: () => void
|
||||
breakfastData: BreakfastData | null
|
||||
setBreakfastData: (breakfastData: BreakfastData | null) => void
|
||||
isBreakfast: boolean
|
||||
isOpen: boolean
|
||||
selectedAncillary: SelectedAncillary | null
|
||||
selectAncillary: (ancillary: SelectedAncillary) => void
|
||||
selectQuantity: VoidFunction
|
||||
selectDeliveryTime: VoidFunction
|
||||
selectQuantityAndDeliveryTime: VoidFunction
|
||||
selectQuantity: () => void
|
||||
selectDeliveryTime: () => void
|
||||
selectQuantityAndDeliveryTime: () => void
|
||||
}
|
||||
|
||||
function findAncillaryByCategory(
|
||||
|
||||
Reference in New Issue
Block a user