diff --git a/apps/portal-web/src/pageComponents/filemanager/RenameModal.tsx b/apps/portal-web/src/pageComponents/filemanager/RenameModal.tsx index 77e892f6db..e872aa7594 100644 --- a/apps/portal-web/src/pageComponents/filemanager/RenameModal.tsx +++ b/apps/portal-web/src/pageComponents/filemanager/RenameModal.tsx @@ -12,7 +12,7 @@ import { App, Form, Input, Modal } from "antd"; import { dirname, join } from "path"; -import { useRef, useState } from "react"; +import { useState } from "react"; import { api } from "src/apis"; import { prefix, useI18nTranslateToString } from "src/i18n"; @@ -37,8 +37,6 @@ export const RenameModal: React.FC = ({ open, onClose, path, reload, clus const [form] = Form.useForm(); const [loading, setLoading] = useState(false); - const containerRef = useRef(null); - const t = useI18nTranslateToString(); const onSubmit = async () => { @@ -56,7 +54,7 @@ export const RenameModal: React.FC = ({ open, onClose, path, reload, clus }; return ( -
event.stopPropagation()}> +
event.stopPropagation()}> = ({ open, onClose, path, reload, clus confirmLoading={loading} destroyOnClose onOk={form.submit} - getContainer={containerRef.current || false} + getContainer={false} >