feat: configurable bed types via BedTypesContext

- Add BedTypesContext with default types + add/remove/update operations
- Replace hardcoded BED_ITEM_TYPES array in RoomModal with useBedTypes()
- Add "Справочник спальных мест" section to RoomCategoriesPage
  (expandable, same UX as amenities: add icon+label, rename, delete)
- BedItem.type changed from union to string for dynamic support

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-23 14:20:09 +03:00
parent 6bf1391890
commit 8c6cdfb1c7
5 changed files with 206 additions and 15 deletions

View File

@@ -51,7 +51,7 @@ export type BedType = 'single' | 'double' | 'queen' | 'king' | 'twin'
export type BedItemType = 'single' | 'double' | 'queen' | 'king' | 'twin' | 'sofa' | 'bunk' | 'cot'
export interface BedItem {
type: BedItemType
type: string
count: number
}