toasts/notifications
Using Ant Design and the built in useNotificationProvider from refine/antd, how can i make custom ontifications
@refinedev/antd, you can follow these steps:@refinedev/antd.useNotificationProvideruseNotificationProvideruseNotificationProviderRefineRefineRefine@refinedev/corenotificationProvideruseNotificationApp.tsxApp.tsxHomePage.tsx``
In this example:
- The file sets up the component with the from .
- The file demonstrates how to use the hook to open and close notifications.
For more details, you can refer to the **Refine documentation on notifications** (<https://refine.dev/docs/ui-integrations/ant-design/introduction/#notifications>) and the **example of using the import React from "react";
import { Refine } from "@refinedev/core";
import { useNotificationProvider, RefineThemes } from "@refinedev/antd";
import { ConfigProvider, App as AntdApp } from "antd";
const App = () => {
return (
<ConfigProvider theme={RefineThemes.Green}>
<AntdApp>
<Refine notificationProvider={useNotificationProvider}>
{/* Your routes and other components */}
</Refine>
</AntdApp>
</ConfigProvider>
);
};
export default App;