From e7f3709c1165833b75bafaa9b9d8626b83dd5b77 Mon Sep 17 00:00:00 2001 From: brooktewabe Date: Wed, 1 Apr 2026 11:35:49 +0300 Subject: [PATCH] room block --- src/lib/types/index.ts | 7 +++---- src/pages/CalendarPage.tsx | 10 +++++----- 2 files changed, 8 insertions(+), 9 deletions(-) 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