21 lines
1.1 KiB
TypeScript
21 lines
1.1 KiB
TypeScript
import type { RouteObject } from 'react-router-dom';
|
|
import ReceiptLongIcon from '@mui/icons-material/ReceiptLong';
|
|
import type { MenuItem } from '@/shell/types';
|
|
import { WageClaimCreatePage, WageClaimPage, WageClaimsPage } from './pages';
|
|
import strings from './strings';
|
|
|
|
/** Refinery wage claims (مطالبة الأجور). Routes use absolute paths; the trip screen of the trips module links here by /refinery/wage-claims/:id. */
|
|
export const routes: RouteObject[] = [
|
|
{ path: '/refinery/wage-claims', element: <WageClaimsPage /> },
|
|
{ path: '/refinery/wage-claims/new', element: <WageClaimCreatePage />, handle: { crumb: strings['wc.crumb.new'] } },
|
|
{ path: '/refinery/wage-claims/:id', element: <WageClaimPage />, handle: { crumb: strings['wc.crumb.details'] } },
|
|
];
|
|
|
|
/** Leaf entry only: the lead composes the refinery group. key = the screen key (PermissionKeys.RefineryWageClaims). */
|
|
export const menuItems: MenuItem[] = [
|
|
{
|
|
key: 'refinery.wageClaims', title: strings['wc.menu'], icon: ReceiptLongIcon, path: '/refinery/wage-claims',
|
|
createPath: '/refinery/wage-claims/new', createKey: 'refinery.wageClaims.create',
|
|
},
|
|
];
|