| | |
| | | Title, |
| | | } from 'react-admin'; |
| | | import { matchPath, useLocation } from 'react-router'; |
| | | import { Box, Typography, Card, Stack } from '@mui/material'; |
| | | import { Box, Typography, Card, Stack, LinearProgress } from '@mui/material'; |
| | | import { styled } from '@mui/material/styles'; |
| | | import EmptyData from "../components/EmptyData"; |
| | | import PageDrawer from "../components/PageDrawer"; |
| | |
| | | const matchShow = matchPath('/mission/:id/show', location.pathname); |
| | | console.log(matchShow); |
| | | |
| | | |
| | | const { data, isPending, filterValues } = useListContext(); |
| | | const hasFilters = filterValues && Object.keys(filterValues).length > 0; |
| | | |
| | | if (isPending) return null; |
| | | console.log(data); |
| | | |
| | | if (!data?.length) { |
| | | if (isPending) return <LinearProgress />; |
| | | if (!data?.length && !hasFilters) { |
| | | return ( |
| | | <> |
| | | {/* <MissionEmpty> */} |
| | |
| | | <Card> |
| | | <MissionListContent /> |
| | | </Card> |
| | | {/* <DealArchivedList /> */} |
| | | |
| | | <MissionShow open={!!matchShow} id={matchShow?.params.id} /> |
| | | </Stack> |
| | | ); |