🐛 fixing comment prefix typo

This commit is contained in:
Ilan 2018-10-24 10:24:20 +02:00 committed by 偏右
parent 1ad5baaf23
commit 5c095b8c1e
2 changed files with 7 additions and 7 deletions

View File

@ -2,7 +2,7 @@
exports[`renders ./components/comment/demo/basic.md correctly 1`] = `
<div
class="ant-comment-comment"
class="ant-comment"
>
<div
class="ant-comment-inner"
@ -143,7 +143,7 @@ exports[`renders ./components/comment/demo/list.md correctly 1`] = `
class="ant-list-item-content ant-list-item-content-single"
>
<div
class="ant-comment-comment"
class="ant-comment"
>
<div
class="ant-comment-inner"
@ -206,7 +206,7 @@ exports[`renders ./components/comment/demo/list.md correctly 1`] = `
class="ant-list-item-content ant-list-item-content-single"
>
<div
class="ant-comment-comment"
class="ant-comment"
>
<div
class="ant-comment-inner"
@ -270,7 +270,7 @@ exports[`renders ./components/comment/demo/list.md correctly 1`] = `
exports[`renders ./components/comment/demo/nested.md correctly 1`] = `
Array [
<div
class="ant-comment-comment"
class="ant-comment"
>
<div
class="ant-comment-inner"
@ -324,7 +324,7 @@ Array [
class="ant-comment-nested"
>
<div
class="ant-comment-comment"
class="ant-comment"
>
<div
class="ant-comment-inner"
@ -375,7 +375,7 @@ Array [
</div>
</div>
<div
class="ant-comment-comment"
class="ant-comment"
>
<div
class="ant-comment-inner"

View File

@ -67,7 +67,7 @@ export default class Comment extends React.Component<CommentProps, {}> {
...otherProps
} = this.props;
const classString = classNames(`${prefixCls}-comment`, className);
const classString = classNames(prefixCls, className);
const avatarDom = typeof avatar === 'string'
? <img src={avatar} />
: avatar;