From d14cd33ef3c5fe2e911e13cdc5d18d45522516f0 Mon Sep 17 00:00:00 2001 From: vergiLgood1 Date: Fri, 21 Feb 2025 07:08:47 +0700 Subject: [PATCH] tes --- sigap-website/prisma/seed.ts | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/sigap-website/prisma/seed.ts b/sigap-website/prisma/seed.ts index 88f036d..0cde7e5 100644 --- a/sigap-website/prisma/seed.ts +++ b/sigap-website/prisma/seed.ts @@ -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,