Added column back button to hashtag timeline component
This commit is contained in:
parent
9f9103b11c
commit
0510fe0915
@ -8,6 +8,7 @@ import { expandHashtagTimeline, clearTimeline } from '../../actions/timelines';
|
|||||||
import { FormattedMessage } from 'react-intl';
|
import { FormattedMessage } from 'react-intl';
|
||||||
import { connectHashtagStream } from '../../actions/streaming';
|
import { connectHashtagStream } from '../../actions/streaming';
|
||||||
import { isEqual } from 'lodash';
|
import { isEqual } from 'lodash';
|
||||||
|
import ColumnBackButton from '../../components/column_back_button';
|
||||||
|
|
||||||
const mapStateToProps = (state, props) => ({
|
const mapStateToProps = (state, props) => ({
|
||||||
hasUnread: state.getIn(['timelines', `hashtag:${props.params.id}`, 'unread']) > 0,
|
hasUnread: state.getIn(['timelines', `hashtag:${props.params.id}`, 'unread']) > 0,
|
||||||
@ -107,6 +108,7 @@ class HashtagTimeline extends React.PureComponent {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<Column label={`#${id}`}>
|
<Column label={`#${id}`}>
|
||||||
|
<ColumnBackButton />
|
||||||
<ColumnHeader icon='hashtag' active={hasUnread} title={this.title()} />
|
<ColumnHeader icon='hashtag' active={hasUnread} title={this.title()} />
|
||||||
<StatusListContainer
|
<StatusListContainer
|
||||||
scrollKey='hashtag_timeline'
|
scrollKey='hashtag_timeline'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user