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

This commit is contained in:
JimmFly
2023-08-09 03:00:44 +08:00
committed by GitHub
parent 73272e266b
commit 5842619206
5 changed files with 72 additions and 46 deletions

View File

@@ -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 />
</>
);