Crops: list and details
Implement crops list page at /c/ displaying a <CropCard compact crop={ crop } />
. Crop list is already available in Redux state (loaded in App.tsx
).
Implement crop page at /c/{shortName}, displaying <CropCard crop={ crop } />
.
ui/genesys/crop/Card
New component. Use compact
flag to render only basic information.
Crop data in state
{
"id": 27,
"version": 1,
"active": true,
"createdBy": 4,
"createdDate": 1408957665000,
"lastModifiedBy": 4,
"lastModifiedDate": 1412255885000,
"rdfUri": null,
"shortName": "apple",
"otherNames": [],
"name": "Apple",
"description": null,
"i18n": "{\"name\":{\"fa\":\"سیب\"}}",
"_class": "Crop",
"_permissions": {
"create": false,
"read": false,
"write": false,
"delete": false,
"manage": false
}
}