Skip to content

Commit

Permalink
docs: update demo
Browse files Browse the repository at this point in the history
  • Loading branch information
JeromeLin committed Mar 30, 2020
1 parent 366d0a9 commit 8caec25
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions components/message/demo.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ class Demo extends React.Component {
<Button onClick={this.showLoading}>Loading</Button>
</div>
<div className="rows">
<Button theme="danger" onClick={this.closeAll}>Close all message</Button>
<Button theme="danger" onClick={this.closeAll}>Close all messages</Button>
</div>
</>
);
Expand Down Expand Up @@ -147,14 +147,14 @@ class Demo extends React.Component {
showMessage = () => {
Message.loading({
key,
content: 'This is the content of the message.',
content: 'loading...',
});
setTimeout(() => {
Message.success({
key,
content: 'This is the content of the message.',
content: 'success!',
});
}, 2500);
}, 3000);
};

render() {
Expand Down
2 changes: 1 addition & 1 deletion components/notification/demo.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ class Demo extends React.Component {
<Button onClick={this.customIcon}>Open a notification with custom icon</Button>
</div>
<div className="rows">
<Button theme="danger" onClick={this.closeAll}>Close all notification</Button>
<Button theme="danger" onClick={this.closeAll}>Close all notifications</Button>
</div>
</>
);
Expand Down

0 comments on commit 8caec25

Please sign in to comment.