mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-27 19:02:23 +08:00
refactor: optimize the use of notification center (#3621)
This commit is contained in:
@@ -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 />
|
||||
</>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user