08c701ba19
This reverts commite6addb8c2a
, reversing changes made to47b594107a
.
17 lines
590 B
JavaScript
17 lines
590 B
JavaScript
import { connect } from 'react-redux';
|
|
import { withRouter } from 'react-router';
|
|
import { DISABLE_COMMENTS_TAG } from 'constants/tags';
|
|
import ChannelDiscussion from './view';
|
|
import { makeSelectTagInClaimOrChannelForUri } from 'lbry-redux';
|
|
|
|
const select = (state, props) => {
|
|
const { search } = props.location;
|
|
const urlParams = new URLSearchParams(search);
|
|
|
|
return {
|
|
linkedCommentId: urlParams.get('lc'),
|
|
commentsDisabled: makeSelectTagInClaimOrChannelForUri(props.uri, DISABLE_COMMENTS_TAG)(state),
|
|
};
|
|
};
|
|
|
|
export default withRouter(connect(select)(ChannelDiscussion));
|