fix: validate member in enter details store
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
import { z } from "zod"
|
||||
|
||||
import { detailsSchema } from "@/components/HotelReservation/EnterDetails/Details/schema"
|
||||
import { guestDetailsSchema } from "@/components/HotelReservation/EnterDetails/Details/schema"
|
||||
|
||||
import type { SafeUser } from "@/types/user"
|
||||
|
||||
export type DetailsSchema = z.output<typeof detailsSchema>
|
||||
export type DetailsSchema = z.output<typeof guestDetailsSchema>
|
||||
|
||||
export interface DetailsProps {
|
||||
user: SafeUser
|
||||
|
||||
3
types/components/hotelReservation/enterDetails/store.ts
Normal file
3
types/components/hotelReservation/enterDetails/store.ts
Normal file
@@ -0,0 +1,3 @@
|
||||
import { StepEnum } from "./step"
|
||||
|
||||
export type EnterDetailsProviderProps = { step: StepEnum; isMember: boolean }
|
||||
Reference in New Issue
Block a user