23 lines
729 B
TypeScript
23 lines
729 B
TypeScript
import { Show, SimpleShowLayout, TextField, DateField, SelectField } from 'react-admin';
|
|
|
|
const equipmentStatusChoices = [
|
|
{ id: 'Active', name: 'Active' },
|
|
{ id: 'Repair', name: 'Repair' },
|
|
{ id: 'Reserve', name: 'Reserve' },
|
|
{ id: 'WriteOff', name: 'WriteOff' },
|
|
];
|
|
|
|
export const EquipmentShow = () => (
|
|
<Show>
|
|
<SimpleShowLayout>
|
|
<TextField source="id" />
|
|
<TextField source="name" />
|
|
<TextField source="serialNumber" />
|
|
<DateField source="dateOfInspection" />
|
|
<DateField source="commissionedAt" />
|
|
<SelectField source="status" choices={equipmentStatusChoices} />
|
|
<DateField source="createdAt" />
|
|
<DateField source="updatedAt" />
|
|
</SimpleShowLayout>
|
|
</Show>
|
|
); |