Updated CommentList to use Fragment instead of useless div

• Updated:
- CommentList to use Fragment instead of useless div
This commit is contained in:
mgabdev 2020-08-10 22:22:36 -05:00
parent b353c835af
commit d8b7681f13
1 changed files with 3 additions and 2 deletions

View File

@ -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>
)
}