Default placement of built-in notifications with antd
I would like to change the default placement of antd notifications.
notification.config()notification.config()notification.config()notificationuseNotificationProvider<App /><App />useNotificationuseNotificationnotificationProvider<Refine><App>import { Refine } from "@refinedev/core";
import { useNotificationProvider, RefineThemes } from "@refinedev/antd";
import { ConfigProvider, App as AntdApp } from "antd";
const App = () => {
return (
<ConfigProvider theme={RefineThemes.Blue}>
<AntdApp>
<Refine
notificationProvider={useNotificationProvider}
// ... other props
>
{/* ... */}
</Refine>
</AntdApp>
</ConfigProvider>
);
};import { Refine } from "@refinedev/core";
import { useNotificationProvider, RefineThemes } from "@refinedev/antd";
import { ConfigProvider, App as AntdApp } from "antd";
const App = () => {
return (
<ConfigProvider theme={RefineThemes.Blue}>
<AntdApp>
<Refine
notificationProvider={useNotificationProvider}
// ... other props
>
{/* ... */}
</Refine>
</AntdApp>
</ConfigProvider>
);
};import { notification } from "antd";
// Place this before your App component
notification.config({
placement: 'bottomRight', // or any other valid placement
});