mirror of
https://github.com/Tria-plc/emaui.git
synced 2026-08-26 19:12:50 +00:00
Resolved by unifying on the lib/data AdvancedTable (PR #10) as the canonical table component: kept its API plus teammate i18n/feature work, kept the folder-per-table structure (index.tsx + columns.tsx + actions.tsx) across all 27 tables, removed the parallel lib/table implementation, and fixed pre-existing compile breaks in ExamDetailPage/QuestionAssigner/RecordResultModal. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
37 lines
898 B
TypeScript
37 lines
898 B
TypeScript
import { Badge, Text } from '@mantine/core';
|
|
import type { AdvancedColumn } from '@ema-platform/ui';
|
|
import {
|
|
STATUS_COLORS,
|
|
STATUS_LABELS,
|
|
type LicenseApplication,
|
|
type LicenseStatus,
|
|
} from '@ema-platform/api';
|
|
|
|
export const logisticsHeadDashboardColumns: AdvancedColumn<LicenseApplication>[] =
|
|
[
|
|
{
|
|
header: 'Number',
|
|
cell: ({ row }) => (
|
|
<Text size="sm" fw={500}>
|
|
{row.original.applicationNumber}
|
|
</Text>
|
|
),
|
|
},
|
|
{
|
|
header: 'Company',
|
|
cell: ({ row }) => <Text size="sm">{row.original.companyName ?? '—'}</Text>,
|
|
},
|
|
{
|
|
header: 'Status',
|
|
cell: ({ row }) => (
|
|
<Badge
|
|
size="sm"
|
|
variant="light"
|
|
color={STATUS_COLORS[row.original.status as LicenseStatus]}
|
|
>
|
|
{STATUS_LABELS[row.original.status as LicenseStatus]}
|
|
</Badge>
|
|
),
|
|
},
|
|
];
|