mirror of
https://github.com/ant-design/ant-design.git
synced 2025-06-07 09:26:06 +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 btn = (
|
||||
<Space>
|
||||
<Button type="link" size="small" onClick={() => notification.destroy()}>
|
||||
<Button type="link" size="small" onClick={() => api.destroy()}>
|
||||
Destroy All
|
||||
</Button>
|
||||
<Button type="primary" size="small" onClick={() => notification.destroy(key)}>
|
||||
<Button type="primary" size="small" onClick={() => api.destroy(key)}>
|
||||
Confirm
|
||||
</Button>
|
||||
</Space>
|
||||
|
Loading…
Reference in New Issue
Block a user