From 1a0bac944b8506ffb7bf76f2273b3a8e8f424bc8 Mon Sep 17 00:00:00 2001 From: Aaron Cawte Date: Fri, 19 Apr 2019 15:06:38 +0100 Subject: [PATCH] Documentation - Modal Component --- components/modal/demo/async.md | 2 +- components/modal/demo/button-props.md | 2 +- components/modal/demo/confirm-promise.md | 2 +- components/modal/demo/confirm-router.md | 2 +- components/modal/demo/confirm.md | 2 +- components/modal/demo/footer.md | 4 ++-- components/modal/demo/manual.md | 2 +- 7 files changed, 8 insertions(+), 8 deletions(-) diff --git a/components/modal/demo/async.md b/components/modal/demo/async.md index 768dfbedc5..b21ee5a40c 100644 --- a/components/modal/demo/async.md +++ b/components/modal/demo/async.md @@ -11,7 +11,7 @@ title: ## en-US -Asynchronously close a modal dialog when a user clicked OK button, for example, +Asynchronously close a modal dialog when a the OK button is pressed. For example, you can use this pattern when you submit a form. ````jsx diff --git a/components/modal/demo/button-props.md b/components/modal/demo/button-props.md index 72a3e0569c..c7155126ec 100644 --- a/components/modal/demo/button-props.md +++ b/components/modal/demo/button-props.md @@ -11,7 +11,7 @@ title: ## en-US -Passing `okButtonProps` and `cancelButtonProps` can customize the ok button and cancel button props. +Passing `okButtonProps` and `cancelButtonProps` will customize the OK button and cancel button props. ````jsx import { Modal, Button } from 'antd'; diff --git a/components/modal/demo/confirm-promise.md b/components/modal/demo/confirm-promise.md index 4e6512168d..ba14855ef7 100644 --- a/components/modal/demo/confirm-promise.md +++ b/components/modal/demo/confirm-promise.md @@ -11,7 +11,7 @@ title: ## en-US -To use `confirm()` to popup confirmation modal dialog. Let onCancel/onOk function return a promise object to +Use `confirm()` to show a confirmation modal dialog. Let onCancel/onOk function return a promise object to delay closing the dialog. ````jsx diff --git a/components/modal/demo/confirm-router.md b/components/modal/demo/confirm-router.md index 6326a820e2..0db063bcea 100644 --- a/components/modal/demo/confirm-router.md +++ b/components/modal/demo/confirm-router.md @@ -11,7 +11,7 @@ title: ## en-US -`Modal.destroyAll()` could destroy all confirmation modal dialogs. Usually, you can use it in router change event to destroy confirm modal dialog automatically +`Modal.destroyAll()` will destroy all confirmation modal dialogs. Usually, you can use it in router change event to destroy confirm modal dialog automatically. ```jsx import { Modal, Button } from 'antd'; diff --git a/components/modal/demo/confirm.md b/components/modal/demo/confirm.md index 8ea6f10de0..085c046503 100644 --- a/components/modal/demo/confirm.md +++ b/components/modal/demo/confirm.md @@ -11,7 +11,7 @@ title: ## en-US -To use `confirm()` to popup a confirmation modal dialog. +Use `confirm()` to show a confirmation modal dialog. ````jsx import { Modal, Button } from 'antd'; diff --git a/components/modal/demo/footer.md b/components/modal/demo/footer.md index adc6742721..67700a2587 100644 --- a/components/modal/demo/footer.md +++ b/components/modal/demo/footer.md @@ -13,8 +13,8 @@ title: ## en-US -A more complex example which define a customized footer button bar, -the dialog will change to loading state after clicking submit button, when the loading is over, +A more complex example which define a customized footer button bar. +The dialog will change to loading state after clicking the submit button, and when the loading is done, the modal dialog will be closed. You could set `footer` to `null` if you don't need default footer buttons. diff --git a/components/modal/demo/manual.md b/components/modal/demo/manual.md index 00f01e8c01..ad7cfbaded 100644 --- a/components/modal/demo/manual.md +++ b/components/modal/demo/manual.md @@ -11,7 +11,7 @@ title: ## en-US -Manually updateing and destroying a modal from `Modal.method`. +Manually updating and destroying a modal from `Modal.method`. ````jsx import { Modal, Button } from 'antd';