fix: edit user modal empty fields (key prop); refactor: sidebar concept A — by work role
Sidebar: 6 groups by daily work role instead of mixed functionality - Фронт-деск: calendar, bookings, guests, pos, room-service, reviews - Номерной фонд: rooms, categories, availability, floor-map, housekeeping, tech tasks - Продажи: tariffs, pricing, discounts, rental, channels, website, widget - Аналитика: reports, loyalty - Персонал: users, schedule, documents - Настройки: settings, modules, billing, equipment, wifi, ttlock, sub-settings Removed: separate 'Разработчикам' group (API docs moved to Настройки) Removed: stale localStorage key sidebarGroups_v2 → v3 Fixed: dynamic modules (pos, room-service, etc) placed in logical groups instead of dumped in 'Сервис' Fixed: UserModal key prop — form now resets correctly when switching between employees Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -1107,6 +1107,7 @@ export function UsersPage() {
|
||||
|
||||
{/* User modal */}
|
||||
<UserModal
|
||||
key={editing?.id ?? 'new'}
|
||||
open={modalOpen}
|
||||
user={editing}
|
||||
onClose={() => setModalOpen(false)}
|
||||
|
||||
Reference in New Issue
Block a user