Browse Source

🐛 fixing comment prefix typo

pull/13084/head
Ilan 6 years ago
committed by 偏右
parent
commit
5c095b8c1e
  1. 12
      components/comment/__tests__/__snapshots__/demo.test.js.snap
  2. 2
      components/comment/index.tsx

12
components/comment/__tests__/__snapshots__/demo.test.js.snap

@ -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"

2
components/comment/index.tsx

@ -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;

Loading…
Cancel
Save