room block

This commit is contained in:
brooktewabe 2026-04-01 11:35:49 +03:00
parent 0f9d0b7e6f
commit e7f3709c11
2 changed files with 8 additions and 9 deletions

View File

@ -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";

View File

@ -30,7 +30,7 @@ export function CalendarPage() {
const [start, setStart] = useState("");
const [end, setEnd] = useState("");
const [title, setTitle] = useState("");
const [reason, setReason] = useState<RoomBlock["reason"]>("maintenance");
const [reason, setReason] = useState<RoomBlock["reason"]>("MAINTENANCE");
const loadRooms = useCallback(() => {
apiGet<{ data: Room[] }>("/rooms").then((r) => {
@ -138,10 +138,10 @@ export function CalendarPage() {
<SelectValue />
</SelectTrigger>
<SelectContent>
<SelectItem value="maintenance">Maintenance</SelectItem>
<SelectItem value="owner_hold">Owner hold</SelectItem>
<SelectItem value="closed">Closed</SelectItem>
<SelectItem value="other">Other</SelectItem>
<SelectItem value="MAINTENANCE">Maintenance</SelectItem>
<SelectItem value="OWNER_BLOCK">Owner hold</SelectItem>
{/* <SelectItem value="closed">Closed</SelectItem> */}
<SelectItem value="OTHER">Other</SelectItem>
</SelectContent>
</Select>
</div>