Updated CommentList to use Fragment instead of useless div
• Updated: - CommentList to use Fragment instead of useless div
This commit is contained in:
parent
b353c835af
commit
d8b7681f13
|
@ -1,3 +1,4 @@
|
|||
import { Fragment } from 'react'
|
||||
import ImmutablePropTypes from 'react-immutable-proptypes'
|
||||
import ImmutablePureComponent from 'react-immutable-pure-component'
|
||||
import Button from './button'
|
||||
|
@ -30,7 +31,7 @@ export default class CommentList extends ImmutablePureComponent {
|
|||
const Wrapper = !commentsLimited ? ScrollableList : Dummy
|
||||
|
||||
return (
|
||||
<div>
|
||||
<Fragment>
|
||||
<Wrapper scrollKey='comments'>
|
||||
{
|
||||
descendants.slice(0, max).map((descendant, i) => (
|
||||
|
@ -66,7 +67,7 @@ export default class CommentList extends ImmutablePureComponent {
|
|||
</div>
|
||||
</div>
|
||||
}
|
||||
</div>
|
||||
</Fragment>
|
||||
)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue