Skip to content

Commit 34f13e1

Browse files
author
Vikas Agarwal
committed
Github issue#2934, Newest message displays at the top of thread
- Moving Add Post text box above the comments to match with the new reversed order of posts
1 parent 1cb96d9 commit 34f13e1

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

src/components/Feed/FeedComments.jsx

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -373,16 +373,6 @@ class FeedComments extends React.Component {
373373
<MediaQuery minWidth={SCREEN_BREAKPOINT_MD}>
374374
{(matches) => (matches ? (
375375
<div>
376-
<div styleName="comments">
377-
{commentRows}
378-
{hasMoreComments &&
379-
<div styleName="load-more" key="load-more">
380-
<a href="javascript:" onClick={ handleLoadMoreClick } styleName="load-btn">
381-
{isLoadingComments ? 'Loading...' : 'load earlier posts'}
382-
</a>
383-
</div>
384-
}
385-
</div>
386376
{allowComments &&
387377
<div styleName="add-comment" key="add-comment">
388378
<AddComment
@@ -398,6 +388,16 @@ class FeedComments extends React.Component {
398388
/>
399389
</div>
400390
}
391+
<div styleName="comments">
392+
{commentRows}
393+
{hasMoreComments &&
394+
<div styleName="load-more" key="load-more">
395+
<a href="javascript:" onClick={ handleLoadMoreClick } styleName="load-btn">
396+
{isLoadingComments ? 'Loading...' : 'load earlier posts'}
397+
</a>
398+
</div>
399+
}
400+
</div>
401401
</div>
402402
) : (
403403
<div>

0 commit comments

Comments
 (0)