refactor: optimize the use of notification center (#3621)

This commit is contained in:
JimmFly authored and GitHub committed 2023-08-08 19:00:44 +00:00
1 parent 73272e266b
commit 5842619206
5 files changed
+72 -46

No files matched your search

@@ -223,6 +223,21 @@ export const Basic = () => {
gif
</button>
</div>
<div>
<button
onClick={() => {
const key = id++;
push({
title: `${key} title`,
type: 'info',
theme: 'default',
timeout: 3000,
});
}}
>
default message
</button>
</div>
<NotificationCenter />
</>
);