| | |
| | | const MissionLayout = () => { |
| | | const location = useLocation(); |
| | | const matchShow = matchPath('/mission/:id/show', location.pathname); |
| | | console.log(matchShow); |
| | | console.log(matchShow?.params.id); |
| | | |
| | | const { data, isPending, filterValues } = useListContext(); |
| | | const hasFilters = filterValues && Object.keys(filterValues).length > 0; |
| | |
| | | return ( |
| | | <> |
| | | <EmptyDataLoader> |
| | | <MissionShow open={!!matchShow} id={matchShow?.params.id} /> |
| | | <MissionShow open={!!matchShow} groupNo={matchShow?.params.id} /> |
| | | </EmptyDataLoader> |
| | | </> |
| | | ); |