tes
This commit is contained in:
parent
538a8f4fa8
commit
d14cd33ef3
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue