From 48754d6243ab08b88797148f166e1312a4568f41 Mon Sep 17 00:00:00 2001 From: Ida Dittrich Date: Mon, 5 Jan 2026 06:58:54 +0100 Subject: [PATCH] fix:typescripts built errors --- src/core/PageManager/PageManager.tsx | 8 ++++---- src/core/PageManager/SidebarProvider.tsx | 10 +++++----- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/core/PageManager/PageManager.tsx b/src/core/PageManager/PageManager.tsx index 32f6088..01ead05 100644 --- a/src/core/PageManager/PageManager.tsx +++ b/src/core/PageManager/PageManager.tsx @@ -30,7 +30,7 @@ const PageManager: React.FC = ({ const checkPageAccess = async (pageData: GenericPageData): Promise => { console.log('🔍 PageManager: Checking page access:', { path: pageData.path, - label: pageData.label, + name: pageData.name, hide: pageData.hide, moduleEnabled: pageData.moduleEnabled }); @@ -57,7 +57,7 @@ const PageManager: React.FC = ({ hasPageData: !!pageData, hide: pageData?.hide, moduleEnabled: pageData?.moduleEnabled, - label: pageData?.label + name: pageData?.name }); if (!pageData || pageData.hide || !pageData.moduleEnabled) { @@ -83,7 +83,7 @@ const PageManager: React.FC = ({ console.log('✅ PageManager: Rendering page:', { path: currentPath, - label: pageData.label + name: pageData.name }); setPageInstances(prev => { @@ -103,7 +103,7 @@ const PageManager: React.FC = ({ if (!newInstances.has(currentPath)) { console.log('📦 PageManager: Creating new page instance:', { path: currentPath, - label: pageData.label + name: pageData.name }); const shouldPreserve = pageData.preserveState || false; diff --git a/src/core/PageManager/SidebarProvider.tsx b/src/core/PageManager/SidebarProvider.tsx index a0e836c..f513441 100644 --- a/src/core/PageManager/SidebarProvider.tsx +++ b/src/core/PageManager/SidebarProvider.tsx @@ -164,7 +164,7 @@ export const SidebarProvider: React.FC = ({ children }) => for (const pageData of mainPages) { console.log('🔍 SidebarProvider: Checking access for page:', { path: pageData.path, - label: pageData.label, + name: pageData.name, hasSubpages: pageData.hasSubpages }); @@ -206,7 +206,7 @@ export const SidebarProvider: React.FC = ({ children }) => console.log('🔍 SidebarProvider: Checking subpage access:', { parentPath: pageData.path, subpagePath: subpage.path, - subpageLabel: subpage.label + subpageName: subpage.name }); const hasSubpageRBACAccess = await canView('UI', subpage.path); @@ -236,7 +236,7 @@ export const SidebarProvider: React.FC = ({ children }) => if (accessibleSubpages.length > 0) { console.log('✅ SidebarProvider: Adding parent page with subpages:', { path: pageData.path, - label: pageData.label, + name: pageData.name, subpagesCount: accessibleSubpages.length }); // Create expandable item with submenu @@ -258,7 +258,7 @@ export const SidebarProvider: React.FC = ({ children }) => // No accessible subpages, show as regular item console.log('✅ SidebarProvider: Adding parent page without accessible subpages:', { path: pageData.path, - label: pageData.label + name: pageData.name }); items.push({ id: pageData.id, @@ -273,7 +273,7 @@ export const SidebarProvider: React.FC = ({ children }) => // Regular items without subpages console.log('✅ SidebarProvider: Adding regular page:', { path: pageData.path, - label: pageData.label + name: pageData.name }); items.push({ id: pageData.id,