From be946e511a29d71b74e7cc4398e2620d48cc619b Mon Sep 17 00:00:00 2001
From: luxiaotao1123 <t1341870251@gmail.com>
Date: 星期三, 16 四月 2025 14:08:37 +0800
Subject: [PATCH] #
---
zy-acs-flow/src/page/agv/GridList.jsx | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/zy-acs-flow/src/page/agv/GridList.jsx b/zy-acs-flow/src/page/agv/GridList.jsx
index 2351198..3e91a71 100644
--- a/zy-acs-flow/src/page/agv/GridList.jsx
+++ b/zy-acs-flow/src/page/agv/GridList.jsx
@@ -1,6 +1,6 @@
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';
@@ -25,6 +25,7 @@
const LoadedGridList = () => {
const { data, error, isPending } = useListContext();
+ const translate = useTranslate();
if (isPending || error) return null;
@@ -42,7 +43,7 @@
))}
{data.length === 0 && (
- <Typography p={2}>No companies found</Typography>
+ <Typography p={2}>No data found</Typography>
)}
</Box>
);
--
Gitblit v1.9.1