From 7f70cb15d035f0c233b9e62b9e43aa985317c908 Mon Sep 17 00:00:00 2001
From: luxiaotao1123 <t1341870251@163.com>
Date: 星期一, 04 十一月 2024 10:22:45 +0800
Subject: [PATCH] #

---
 zy-acs-flow/src/page/components/ImportButton.jsx |   10 ++++++----
 1 files changed, 6 insertions(+), 4 deletions(-)

diff --git a/zy-acs-flow/src/page/components/ImportButton.jsx b/zy-acs-flow/src/page/components/ImportButton.jsx
index cf21f69..147ec9e 100644
--- a/zy-acs-flow/src/page/components/ImportButton.jsx
+++ b/zy-acs-flow/src/page/components/ImportButton.jsx
@@ -1,9 +1,9 @@
 import UploadIcon from '@mui/icons-material/Upload';
 import { useState } from 'react';
 import { Button } from 'react-admin';
-import { ImportModal } from './ImportModal';
+import ImportModal from './ImportModal';
 
-export const ImportButton = (props) => {
+const ImportButton = (props) => {
     const [modalOpen, setModalOpen] = useState(false);
 
     const handleOpenModal = () => {
@@ -13,12 +13,12 @@
     const handleCloseModal = () => {
         setModalOpen(false);
     };
-    
+
     return (
         <>
             <Button
                 startIcon={<UploadIcon />}
-                label="Import"
+                label="common.action.import.title"
                 onClick={handleOpenModal}
             />
 
@@ -26,3 +26,5 @@
         </>
     );
 };
+
+export default ImportButton;
\ No newline at end of file

--
Gitblit v1.9.1