This commit is contained in:
vergiLgood1 2025-02-21 07:08:47 +07:00
parent 538a8f4fa8
commit d14cd33ef3
1 changed files with 1 additions and 6 deletions

View File

@ -209,11 +209,6 @@ const navItemDatas = [
},
];
// Helper function to convert icon names
const convertIconName = (iconName: string): string => {
return iconName.replace("Icon", "").toLowerCase();
};
// Helper function to create path
const createPath = (currentPath: string, orderSeq: number): string => {
return currentPath ? `${currentPath}.${orderSeq}` : `${orderSeq}`;
@ -238,7 +233,7 @@ const processNavigationItems = (
title: item.title,
url: item.url,
slug: item.slug,
icon: convertIconName(item.icon),
icon: item.icon,
path: currentPath,
level: calculateLevel(currentPath),
isActive: item.isActive,