Browse Source
Merge pull request #17070 from maximest-pierre/Fix/grammar-message-other
Fix grammar on message documentation
pull/17080/head
偏右
6 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
3 additions and
3 deletions
-
components/message/demo/other.md
|
@ -17,15 +17,15 @@ Messages of success, error and warning types. |
|
|
import { message, Button } from 'antd'; |
|
|
import { message, Button } from 'antd'; |
|
|
|
|
|
|
|
|
const success = () => { |
|
|
const success = () => { |
|
|
message.success('This is a message of success'); |
|
|
message.success('This is a success message'); |
|
|
}; |
|
|
}; |
|
|
|
|
|
|
|
|
const error = () => { |
|
|
const error = () => { |
|
|
message.error('This is a message of error'); |
|
|
message.error('This is an error message'); |
|
|
}; |
|
|
}; |
|
|
|
|
|
|
|
|
const warning = () => { |
|
|
const warning = () => { |
|
|
message.warning('This is message of warning'); |
|
|
message.warning('This is a warning message'); |
|
|
}; |
|
|
}; |
|
|
|
|
|
|
|
|
ReactDOM.render( |
|
|
ReactDOM.render( |
|
|