diff --git a/src/containers/AppContainer/AntdStaticMethod.tsx b/src/containers/AppContainer/AntdStaticMethod.tsx deleted file mode 100644 index aa953bf4..00000000 --- a/src/containers/AppContainer/AntdStaticMethod.tsx +++ /dev/null @@ -1,18 +0,0 @@ -import { App } from 'antd'; -import type { MessageInstance } from 'antd/es/message/interface'; -import type { ModalStaticFunctions } from 'antd/es/modal/confirm'; -import type { NotificationInstance } from 'antd/es/notification/interface'; - -let message: MessageInstance; -let notification: NotificationInstance; -let modal: Omit; - -export default () => { - const staticFunction = App.useApp(); - message = staticFunction.message; - modal = staticFunction.modal; - notification = staticFunction.notification; - return null; -}; - -export { message, notification, modal }; diff --git a/src/containers/AppContainer/index.ts b/src/containers/AppContainer/index.ts index a9180e75..668f88ee 100644 --- a/src/containers/AppContainer/index.ts +++ b/src/containers/AppContainer/index.ts @@ -1,2 +1 @@ -export { message, modal, notification } from './AntdStaticMethod'; export { AppContainer } from './AppContainer';