diff --git a/components/modal/demo/async.md b/components/modal/demo/async.md
index 4e9abb6b57..41f0f07efc 100644
--- a/components/modal/demo/async.md
+++ b/components/modal/demo/async.md
@@ -19,7 +19,7 @@ import { Modal, Button } from 'antd';
class App extends React.Component {
state = {
- ModalText: 'Content of the modal dialog',
+ ModalText: 'Content of the modal',
visible: false,
}
showModal = () => {
@@ -29,7 +29,7 @@ class App extends React.Component {
}
handleOk = () => {
this.setState({
- ModalText: 'The modal dialog will be closed after two seconds',
+ ModalText: 'The modal will be closed after two seconds',
confirmLoading: true,
});
setTimeout(() => {
@@ -46,16 +46,17 @@ class App extends React.Component {
});
}
render() {
+ const { visible, confirmLoading, ModalText } = this.state;
return (
-
-
Open
+
- {this.state.ModalText}
+ {ModalText}
);
diff --git a/components/modal/demo/basic.md b/components/modal/demo/basic.md
index 8961782a38..95dd835a66 100644
--- a/components/modal/demo/basic.md
+++ b/components/modal/demo/basic.md
@@ -11,7 +11,7 @@ title:
## en-US
-Basic modal dialog.
+Basic modal.
````jsx
import { Modal, Button } from 'antd';
@@ -38,16 +38,16 @@ class App extends React.Component {
render() {
return (
-
+
- some contents...
- some contents...
- some contents...
+ Some contents...
+ Some contents...
+ Some contents...
);
diff --git a/components/modal/demo/confirm-promise.md b/components/modal/demo/confirm-promise.md
index e923790af7..008672d8be 100644
--- a/components/modal/demo/confirm-promise.md
+++ b/components/modal/demo/confirm-promise.md
@@ -20,7 +20,7 @@ const confirm = Modal.confirm;
function showConfirm() {
confirm({
- title: 'Want to delete these items?',
+ title: 'Do you want to delete these items?',
content: 'When clicked the OK button, this dialog will be closed after 1 second',
onOk() {
return new Promise((resolve, reject) => {
@@ -33,7 +33,7 @@ function showConfirm() {
ReactDOM.render(
, mountNode);
````
diff --git a/components/modal/demo/confirm.md b/components/modal/demo/confirm.md
index d2482ecb12..88d0a468f2 100644
--- a/components/modal/demo/confirm.md
+++ b/components/modal/demo/confirm.md
@@ -19,8 +19,8 @@ const confirm = Modal.confirm;
function showConfirm() {
confirm({
- title: 'Want to delete these items?',
- content: 'some descriptions',
+ title: 'Do you Want to delete these items?',
+ content: 'Some descriptions',
onOk() {
console.log('OK');
},
@@ -32,7 +32,7 @@ function showConfirm() {
ReactDOM.render(
, mountNode);
````
diff --git a/components/modal/demo/footer.md b/components/modal/demo/footer.md
index 7a474c837f..274568fd50 100644
--- a/components/modal/demo/footer.md
+++ b/components/modal/demo/footer.md
@@ -42,19 +42,20 @@ class App extends React.Component {
this.setState({ visible: false });
}
render() {
+ const { visible, loading } = this.state;
return (
Return,
-