init equipment & change-status
This commit is contained in:
17
client/src/resources/equipment/EquipmentShow.tsx
Normal file
17
client/src/resources/equipment/EquipmentShow.tsx
Normal file
@@ -0,0 +1,17 @@
|
||||
import { DateField, SelectField, Show, SimpleShowLayout, TextField } from 'react-admin';
|
||||
import { equipmentStatusChoices } from './shared';
|
||||
|
||||
export function EquipmentShow() {
|
||||
return (
|
||||
<Show>
|
||||
<SimpleShowLayout>
|
||||
<TextField source="id" />
|
||||
<TextField source="name" />
|
||||
<TextField source="serialNumber" />
|
||||
<DateField source="dateOfInspection" />
|
||||
<DateField source="commissionedAt" />
|
||||
<SelectField source="status" choices={equipmentStatusChoices} />
|
||||
</SimpleShowLayout>
|
||||
</Show>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user