18 lines
627 B
TypeScript
18 lines
627 B
TypeScript
import { Show, SimpleShowLayout, TextField, DateField, ReferenceField } from 'react-admin';
|
|
|
|
export const ConsumptionRegistrationShow = () => (
|
|
<Show>
|
|
<SimpleShowLayout>
|
|
<TextField source="id" />
|
|
<TextField source="number" />
|
|
<DateField source="date" />
|
|
<ReferenceField source="equipmentId" reference="equipment">
|
|
<TextField source="name" />
|
|
</ReferenceField>
|
|
<TextField source="totalEngineHours" />
|
|
<TextField source="fuelConsumption" />
|
|
<DateField source="createdAt" showTime />
|
|
<DateField source="updatedAt" showTime />
|
|
</SimpleShowLayout>
|
|
</Show>
|
|
); |