diff --git a/app/javascript/gabsocial/components/status.js b/app/javascript/gabsocial/components/status.js index 3c3b90d9..c710672a 100644 --- a/app/javascript/gabsocial/components/status.js +++ b/app/javascript/gabsocial/components/status.js @@ -21,6 +21,7 @@ import StatusHeader from './status_header' import CommentList from './comment_list' import Button from './button' import Text from './text' +import SortBlock from './sort_block' import ColumnIndicator from './column_indicator' // We use the component (and not the container) since we do not want @@ -377,19 +378,15 @@ class Status extends ImmutablePureComponent { } } - handleOnCommentSortOpen = () => { - this.props.onCommentSortOpen(this.commentSortButtonRef) + handleOnCommentSortOpen = (btn) => { + this.props.onCommentSortOpen(btn) } - handleRef = c => { + handleRef = (c) => { this.node = c this._measureHeight() } - setCommentSortButtonRef = (c) => { - this.commentSortButtonRef = c - } - render() { const { intl, @@ -602,24 +599,10 @@ class Status extends ImmutablePureComponent {
-
- - {intl.formatMessage(messages.sortBy)} - - -
+ { descendantsIds.size === 0 &&