Feat: Install sonner library #3221 (#6898)

### What problem does this PR solve?

Feat: Install sonner library #3221

### Type of change


- [x] New Feature (non-breaking change which adds functionality)
This commit is contained in:
balibabu
2025-04-09 17:21:01 +08:00
committed by GitHub
parent 6e7fb75618
commit 08bc5d3521
5 changed files with 55 additions and 6 deletions

View File

@ -4,6 +4,9 @@ import { Outlet } from 'umi';
import '../locales/config';
import Header from './components/header';
import { Toaster as Sonner } from '@/components/ui/sonner';
import { Toaster } from '@/components/ui/toaster';
import styles from './index.less';
const { Content } = Layout;
@ -29,6 +32,8 @@ const App: React.FC = () => {
>
<Outlet />
</Content>
<Toaster />
<Sonner position={'top-right'} expand richColors closeButton></Sonner>
</Layout>
</Layout>
);