From 90e2042a91f50ca2c5324f2322199e541d9724a5 Mon Sep 17 00:00:00 2001 From: Ardeman Date: Wed, 12 Mar 2025 08:52:23 +0800 Subject: [PATCH] refactor: remove unused icon components and update menu to use new icons --- app/components/icons/chart.tsx | 23 ----------------------- app/components/icons/chat.tsx | 23 ----------------------- app/components/icons/document.tsx | 23 ----------------------- app/layouts/admin/menu.ts | 16 ++++++++-------- 4 files changed, 8 insertions(+), 77 deletions(-) delete mode 100644 app/components/icons/chart.tsx delete mode 100644 app/components/icons/chat.tsx delete mode 100644 app/components/icons/document.tsx diff --git a/app/components/icons/chart.tsx b/app/components/icons/chart.tsx deleted file mode 100644 index c733d6c..0000000 --- a/app/components/icons/chart.tsx +++ /dev/null @@ -1,23 +0,0 @@ -import type { JSX, SVGProps } from 'react' - -export const ChartIcon = ( - properties: JSX.IntrinsicAttributes & SVGProps, -) => { - return ( - - - - ) -} diff --git a/app/components/icons/chat.tsx b/app/components/icons/chat.tsx deleted file mode 100644 index 711bd6f..0000000 --- a/app/components/icons/chat.tsx +++ /dev/null @@ -1,23 +0,0 @@ -import type { JSX, SVGProps } from 'react' - -export const ChatIcon = ( - properties: JSX.IntrinsicAttributes & SVGProps, -) => { - return ( - - - - ) -} diff --git a/app/components/icons/document.tsx b/app/components/icons/document.tsx deleted file mode 100644 index 87ffd37..0000000 --- a/app/components/icons/document.tsx +++ /dev/null @@ -1,23 +0,0 @@ -import type { JSX, SVGProps } from 'react' - -export const DocumentIcon = ( - properties: JSX.IntrinsicAttributes & SVGProps, -) => { - return ( - - - - ) -} diff --git a/app/layouts/admin/menu.ts b/app/layouts/admin/menu.ts index b3fac6e..22d6fe8 100644 --- a/app/layouts/admin/menu.ts +++ b/app/layouts/admin/menu.ts @@ -1,15 +1,15 @@ import { + ChartBarSquareIcon, ClipboardDocumentCheckIcon, DocumentCurrencyDollarIcon, MegaphoneIcon, + NewspaperIcon, + PresentationChartLineIcon, TagIcon, + UsersIcon, } from '@heroicons/react/20/solid' import type { SVGProps } from 'react' -import { ChartIcon } from '~/components/icons/chart' -import { ChatIcon } from '~/components/icons/chat' -import { DocumentIcon } from '~/components/icons/document' - type TMenu = { group: string items: { @@ -26,17 +26,17 @@ export const MENU: TMenu[] = [ { title: 'Dashboard', url: '/lg-admin', - icon: ChartIcon, + icon: ChartBarSquareIcon, }, { title: 'User', url: '/lg-admin/users', - icon: DocumentIcon, + icon: UsersIcon, }, { title: 'Artikel', url: '/lg-admin/contents', - icon: ChatIcon, + icon: NewspaperIcon, }, { title: 'Banner Iklan', @@ -46,7 +46,7 @@ export const MENU: TMenu[] = [ { title: 'Subscription', url: '/lg-admin/subscriptions', - icon: ChartIcon, + icon: PresentationChartLineIcon, }, ], },