feat: update category menu and dashboard titles for consistency and clarity

This commit is contained in:
Ardeman 2025-03-07 15:04:22 +08:00
parent 72e2dac328
commit 40a3f33ea3
2 changed files with 9 additions and 11 deletions

View File

@ -1,4 +1,5 @@
import type { JSX, SVGProps } from 'react' import { ClipboardDocumentCheckIcon } from '@heroicons/react/20/solid'
import type { SVGProps } from 'react'
import { ChartIcon } from '~/components/icons/chart' import { ChartIcon } from '~/components/icons/chart'
import { ChatIcon } from '~/components/icons/chat' import { ChatIcon } from '~/components/icons/chat'
@ -6,16 +7,13 @@ import { DocumentIcon } from '~/components/icons/document'
import { MedicalNotesIcon } from '~/components/icons/medical-notes' import { MedicalNotesIcon } from '~/components/icons/medical-notes'
import { ProfileIcon } from '~/components/icons/profile' import { ProfileIcon } from '~/components/icons/profile'
import { SettingIcon } from '~/components/icons/setting' import { SettingIcon } from '~/components/icons/setting'
import { WalletIcon } from '~/components/icons/wallet'
type TMenu = { type TMenu = {
group: string group: string
items: { items: {
title: string title: string
url: string url: string
icon: ( icon: React.ComponentType<SVGProps<SVGSVGElement>>
properties: JSX.IntrinsicAttributes & SVGProps<SVGSVGElement>,
) => JSX.Element
}[] }[]
} }
@ -54,9 +52,9 @@ export const MENU: TMenu[] = [
group: 'Others', group: 'Others',
items: [ items: [
{ {
title: 'Data Situs', title: 'Kategori',
url: '/lg-admin/site-data', url: '/lg-admin/categories',
icon: WalletIcon, icon: ClipboardDocumentCheckIcon,
}, },
{ {
title: 'Pengaturan', title: 'Pengaturan',

View File

@ -27,11 +27,11 @@ export const CategoriesPage = () => {
}, },
}, },
{ {
title: 'Nama Kategori', title: 'Nama',
data: 'name', data: 'name',
}, },
{ {
title: 'Code Katgeori', title: 'Kode',
data: 'code', data: 'code',
}, },
{ {
@ -78,7 +78,7 @@ export const CategoriesPage = () => {
columns={dataColumns} columns={dataColumns}
options={dataOptions} options={dataOptions}
slots={dataSlot} slots={dataSlot}
title="Daftar Katgeori" title="Daftar Kategori"
/> />
</div> </div>
) )