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

View File

@ -1,3 +1,4 @@
import { Fragment } from 'react'
import ImmutablePropTypes from 'react-immutable-proptypes' import ImmutablePropTypes from 'react-immutable-proptypes'
import ImmutablePureComponent from 'react-immutable-pure-component' import ImmutablePureComponent from 'react-immutable-pure-component'
import Button from './button' import Button from './button'
@ -30,7 +31,7 @@ export default class CommentList extends ImmutablePureComponent {
const Wrapper = !commentsLimited ? ScrollableList : Dummy const Wrapper = !commentsLimited ? ScrollableList : Dummy
return ( return (
<div> <Fragment>
<Wrapper scrollKey='comments'> <Wrapper scrollKey='comments'>
{ {
descendants.slice(0, max).map((descendant, i) => ( descendants.slice(0, max).map((descendant, i) => (
@ -66,7 +67,7 @@ export default class CommentList extends ImmutablePureComponent {
</div> </div>
</div> </div>
} }
</div> </Fragment>
) )
} }