diff --git a/components/modal/demo/confirm-promise.md b/components/modal/demo/confirm-promise.md index 103ea7186b..9d7488cf57 100644 --- a/components/modal/demo/confirm-promise.md +++ b/components/modal/demo/confirm-promise.md @@ -8,7 +8,7 @@ ````jsx import { Modal, Button } from 'antd'; -const confirm = antd.Modal.confirm; +const confirm = Modal.confirm; function showConfirm(){ confirm({ diff --git a/components/modal/demo/confirm.md b/components/modal/demo/confirm.md index a5114f39f2..5d15df5dcc 100644 --- a/components/modal/demo/confirm.md +++ b/components/modal/demo/confirm.md @@ -8,7 +8,7 @@ ````jsx import { Modal, Button } from 'antd'; -const confirm = antd.Modal.confirm; +const confirm = Modal.confirm; function showConfirm(){ confirm({