ee9f63a161
bugfix wip flow fix cleaning clean
15 lines
744 B
JavaScript
15 lines
744 B
JavaScript
import { connect } from 'react-redux';
|
|
import { makeSelectClaimIsMine, selectMyChannelClaims } from 'redux/selectors/claims';
|
|
import { selectIsFetchingCommentsByParentId, makeSelectRepliesForParentId } from 'redux/selectors/comments';
|
|
import { selectUserVerifiedEmail } from 'redux/selectors/user';
|
|
import CommentsReplies from './view';
|
|
|
|
const select = (state, props) => ({
|
|
fetchedReplies: makeSelectRepliesForParentId(props.parentId)(state),
|
|
claimIsMine: makeSelectClaimIsMine(props.uri)(state),
|
|
commentingEnabled: IS_WEB ? Boolean(selectUserVerifiedEmail(state)) : true,
|
|
myChannels: selectMyChannelClaims(state),
|
|
isFetchingByParentId: selectIsFetchingCommentsByParentId(state),
|
|
});
|
|
|
|
export default connect(select)(CommentsReplies);
|