diff --git a/src/lib/types/index.ts b/src/lib/types/index.ts index 0815144..c297615 100644 --- a/src/lib/types/index.ts +++ b/src/lib/types/index.ts @@ -27,10 +27,9 @@ export type RoomInventoryStatus = | "out_of_order"; export type RoomBlockReason = - | "maintenance" - | "owner_hold" - | "closed" - | "other"; + | "MAINTENANCE" + | "OWNER_BLOCK" + | "OTHER"; export type DiscountType = "percent" | "fixed_amount"; diff --git a/src/pages/CalendarPage.tsx b/src/pages/CalendarPage.tsx index 0f9ad5c..31d6f2f 100644 --- a/src/pages/CalendarPage.tsx +++ b/src/pages/CalendarPage.tsx @@ -30,7 +30,7 @@ export function CalendarPage() { const [start, setStart] = useState(""); const [end, setEnd] = useState(""); const [title, setTitle] = useState(""); - const [reason, setReason] = useState("maintenance"); + const [reason, setReason] = useState("MAINTENANCE"); const loadRooms = useCallback(() => { apiGet<{ data: Room[] }>("/rooms").then((r) => { @@ -138,10 +138,10 @@ export function CalendarPage() { - Maintenance - Owner hold - Closed - Other + Maintenance + Owner hold + {/* Closed */} + Other