docs: Fix notification demo (#39122)

This commit is contained in:
二货爱吃白萝卜 2022-11-30 21:19:11 +08:00 committed by GitHub
parent b85be0195d
commit 07d0a305fe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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>