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
|
// Helper function to create path
|
||||||
const createPath = (currentPath: string, orderSeq: number): string => {
|
const createPath = (currentPath: string, orderSeq: number): string => {
|
||||||
return currentPath ? `${currentPath}.${orderSeq}` : `${orderSeq}`;
|
return currentPath ? `${currentPath}.${orderSeq}` : `${orderSeq}`;
|
||||||
|
@ -238,7 +233,7 @@ const processNavigationItems = (
|
||||||
title: item.title,
|
title: item.title,
|
||||||
url: item.url,
|
url: item.url,
|
||||||
slug: item.slug,
|
slug: item.slug,
|
||||||
icon: convertIconName(item.icon),
|
icon: item.icon,
|
||||||
path: currentPath,
|
path: currentPath,
|
||||||
level: calculateLevel(currentPath),
|
level: calculateLevel(currentPath),
|
||||||
isActive: item.isActive,
|
isActive: item.isActive,
|
||||||
|
|
Loading…
Reference in New Issue