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') && ( + + )} )}