| | |
| | | import * as React from 'react'; |
| | | import { Box, Paper, Typography } from '@mui/material'; |
| | | import { RecordContextProvider, useListContext } from 'react-admin'; |
| | | import { RecordContextProvider, useListContext, useTranslate } from 'react-admin'; |
| | | |
| | | import { AgvCard } from './AgvCard'; |
| | | |
| | |
| | | |
| | | const LoadedGridList = () => { |
| | | const { data, error, isPending } = useListContext(); |
| | | const translate = useTranslate(); |
| | | |
| | | if (isPending || error) return null; |
| | | |
| | |
| | | ))} |
| | | |
| | | {data.length === 0 && ( |
| | | <Typography p={2}>No companies found</Typography> |
| | | <Typography p={2}>No data found</Typography> |
| | | )} |
| | | </Box> |
| | | ); |