mirror of
https://github.com/ant-design/ant-design.git
synced 2025-06-07 17:44:35 +08:00
docs: Fix notification demo (#39122)
This commit is contained in:
parent
b85be0195d
commit
07d0a305fe
@ -14,10 +14,10 @@ const App: React.FC = () => {
|
|||||||
const key = `open${Date.now()}`;
|
const key = `open${Date.now()}`;
|
||||||
const btn = (
|
const btn = (
|
||||||
<Space>
|
<Space>
|
||||||
<Button type="link" size="small" onClick={() => notification.destroy()}>
|
<Button type="link" size="small" onClick={() => api.destroy()}>
|
||||||
Destroy All
|
Destroy All
|
||||||
</Button>
|
</Button>
|
||||||
<Button type="primary" size="small" onClick={() => notification.destroy(key)}>
|
<Button type="primary" size="small" onClick={() => api.destroy(key)}>
|
||||||
Confirm
|
Confirm
|
||||||
</Button>
|
</Button>
|
||||||
</Space>
|
</Space>
|
||||||
|
Loading…
Reference in New Issue
Block a user