| | |
| | | import { blueGrey } from '@mui/material/colors'; |
| | | import MoveToInboxIcon from '@mui/icons-material/MoveToInbox'; |
| | | import { format } from 'date-fns'; |
| | | import { TaskList } from "./TaskList"; |
| | | |
| | | const MissionShow = ({ open, id }) => { |
| | | const redirect = useRedirect(); |
| | |
| | | </Box> |
| | | </Box> |
| | | |
| | | {!!record.contact_ids?.length && ( |
| | | {!!record.taskIds?.length && ( |
| | | <Box m={2}> |
| | | <Box |
| | | display="flex" |
| | |
| | | color="textSecondary" |
| | | variant="caption" |
| | | > |
| | | Contacts |
| | | Tasks |
| | | </Typography> |
| | | <ReferenceArrayField |
| | | source="contact_ids" |
| | | reference="contacts_summary" |
| | | > |
| | | <ContactList /> |
| | | <TaskList taskIds={record.taskIds} /> |
| | | </ReferenceArrayField> |
| | | </Box> |
| | | </Box> |