feat: add generated code: frontend/src/resources/equipment/EquipmentList.tsx
This commit is contained in:
20
frontend/src/resources/equipment/EquipmentList.tsx
Normal file
20
frontend/src/resources/equipment/EquipmentList.tsx
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
import { List, DataTable, TextField, DateField, EditButton, ShowButton } from 'react-admin';
|
||||||
|
import { EquipmentStatusSelectField } from './EquipmentStatusSelectField';
|
||||||
|
|
||||||
|
export const EquipmentList = () => (
|
||||||
|
<List>
|
||||||
|
<DataTable>
|
||||||
|
<DataTable.Col source="id" />
|
||||||
|
<DataTable.Col source="name" />
|
||||||
|
<DataTable.Col source="serialNumber" />
|
||||||
|
<DataTable.Col source="dateOfInspection" field={DateField} />
|
||||||
|
<DataTable.Col source="commissionedAt" field={DateField} />
|
||||||
|
<DataTable.Col source="status" field={EquipmentStatusSelectField} />
|
||||||
|
<DataTable.Col source="createdAt" field={DateField} />
|
||||||
|
<DataTable.Col>
|
||||||
|
<ShowButton />
|
||||||
|
<EditButton />
|
||||||
|
</DataTable.Col>
|
||||||
|
</DataTable>
|
||||||
|
</List>
|
||||||
|
);
|
||||||
Reference in New Issue
Block a user