diff --git a/components/comment/__tests__/__snapshots__/demo.test.js.snap b/components/comment/__tests__/__snapshots__/demo.test.js.snap
index 9a45b05765..9994284e1c 100644
--- a/components/comment/__tests__/__snapshots__/demo.test.js.snap
+++ b/components/comment/__tests__/__snapshots__/demo.test.js.snap
@@ -117,84 +117,86 @@ exports[`renders ./components/comment/demo/basic.md correctly 1`] = `
exports[`renders ./components/comment/demo/editor.md correctly 1`] = `
-
diff --git a/components/comment/__tests__/demo.test.js b/components/comment/__tests__/demo.test.js
index f0cb72e129..08a4e61f23 100644
--- a/components/comment/__tests__/demo.test.js
+++ b/components/comment/__tests__/demo.test.js
@@ -1,3 +1,3 @@
import demoTest from '../../../tests/shared/demoTest';
- demoTest('comment');
+demoTest('comment');
diff --git a/components/comment/demo/basic.md b/components/comment/demo/basic.md
index 55b3dc1c47..6744d9e846 100644
--- a/components/comment/demo/basic.md
+++ b/components/comment/demo/basic.md
@@ -37,7 +37,7 @@ class App extends React.Component {
likes: 0,
dislikes: 1,
action: 'disliked',
- })
+ });
}
render() {
@@ -75,20 +75,20 @@ class App extends React.Component {
Han Solo}
- avatar={
+ avatar={(
- }
- content={
+ )}
+ content={(
We supply a series of design principles, practical patterns and high quality design resources (Sketch and Axure), to help people create their product prototypes beautifully and efficiently.
- }
- datetime={
+ )}
+ datetime={(
{moment().fromNow()}
- }
+ )}
/>
);
}
diff --git a/components/comment/demo/editor.md b/components/comment/demo/editor.md
index c116b64d96..36fcdc762d 100644
--- a/components/comment/demo/editor.md
+++ b/components/comment/demo/editor.md
@@ -14,7 +14,7 @@ title:
Comment can be used as editor, user can customize the editor component.
````jsx
-import { Comment, Icon, Tooltip, Avatar, Form, Button, List, Input } from 'antd';
+import { Comment, Avatar, Form, Button, List, Input } from 'antd';
import moment from 'moment';
const FormItem = Form.Item;
@@ -49,7 +49,7 @@ class Editor extends React.Component {
}
render() {
- const { getFieldDecorator, getFieldsError, getFieldError, isFieldTouched } = this.props.form;
+ const { getFieldDecorator, getFieldsError } = this.props.form;
return (