remove message

This commit is contained in:
xion 2024-11-09 12:25:54 +08:00
parent 005e0b401a
commit c2ebbac997
4 changed files with 1 additions and 25 deletions

View File

@ -1 +0,0 @@
export * from './message';

View File

@ -1,22 +0,0 @@
import { App } from 'antd';
export const useMessage = () => {
const { message: antMessage, modal, notification } = App.useApp();
return {
success: antMessage.success,
error: antMessage.error,
warning: antMessage.warning,
info: antMessage.info,
loading: antMessage.loading,
open: antMessage.open,
destroy: antMessage.destroy,
modal: modal,
notification: notification,
message: antMessage,
com: (
<>
<App />
</>
),
};
};

View File

@ -23,7 +23,6 @@ import { Button, message, Tooltip } from 'antd';
import { usePanelStore } from '../store';
import { CompassOutlined, PlusOutlined, SaveOutlined } from '@ant-design/icons';
import { generateId } from '@/utils/nanoid';
import { useMessage } from '@/hooks';
import { NodeProperties } from './properties/NodeProperties';
import { emitter } from '@kevisual/container';
// router: Router

2
theme

@ -1 +1 @@
Subproject commit 5e67c93b63984ff1996fb0060ff88d70123aebca
Subproject commit c5a509e4e8a63b19e4e5fbbc5a142d550957ed8a