From 370fe8a9a9e63becbf5e81ce90e6eba141d7961d Mon Sep 17 00:00:00 2001 From: HotelSync Date: Sat, 21 Mar 2026 22:46:39 +0300 Subject: [PATCH] =?UTF-8?q?feat:=20move=20rental=20module=20to=20main=20na?= =?UTF-8?q?v=20under=20=D0=A6=D0=B5=D0=BD=D1=8B=20=D0=B8=20=D1=82=D0=B0?= =?UTF-8?q?=D1=80=D0=B8=D1=84=D1=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Sonnet 4.6 --- src/components/layout/Sidebar.tsx | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/components/layout/Sidebar.tsx b/src/components/layout/Sidebar.tsx index 5207f99..0671e7b 100644 --- a/src/components/layout/Sidebar.tsx +++ b/src/components/layout/Sidebar.tsx @@ -2,7 +2,7 @@ import { NavLink, useNavigate } from 'react-router-dom' import { CalendarDays, BookOpen, BedDouble, Globe, Settings, FileText, LayoutDashboard, Building2, Users, X, Hotel, Puzzle, CalendarRange, Map, LayoutGrid, UserCog, UsersRound, - TrendingUp, Tag, Award, Wrench, Utensils, + TrendingUp, Tag, Award, Wrench, Utensils, CalendarClock, } from 'lucide-react' import { useAuth } from '../../contexts/AuthContext' import { useModules } from '../../contexts/ModulesContext' @@ -45,7 +45,7 @@ export function Sidebar({ open, onClose }: SidebarProps) { const isModuleActive = (id: string) => statuses[id] === 'active' || statuses[id] === 'trial' // Core modules with dedicated nav positions (not shown in generic module list) - const CORE_MODULE_IDS = ['channel-manager'] + const CORE_MODULE_IDS = ['channel-manager', 'rental'] // Module items for the "Модули" sidebar section const activeModuleItems = MODULES_DATA.filter( @@ -133,6 +133,9 @@ export function Sidebar({ open, onClose }: SidebarProps) { + {isModuleActive('rental') && ( + + )} )}