Create index.js in commentReply

This commit is contained in:
Kenneth Tubman V 2020-02-04 22:56:11 -05:00 committed by Sean Yesmunt
parent 613ba98676
commit e3103747c8

View file

@ -0,0 +1,20 @@
import { connect } from 'react-redux';
import { doCommentCreate, makeSelectClaimForUri } from 'lbry-redux';
import { doOpenModal } from 'redux/actions/app';
import { CommentReply } from './view';
import { selectUserVerifiedEmail } from 'lbryinc';
const select = (state, props) => ({
commentingEnabled: IS_WEB ? Boolean(selectUserVerifiedEmail(state)) : true,
claim: makeSelectClaimForUri(props.uri)(state),
});
const perform = dispatch => ({
replyComment: (comment, claimId, channel, parentId) => dispatch(doCommentCreate(comment, claimId, channel, parentId)),
openModal: (modal, props) => dispatch(doOpenModal(modal, props)),
});
export default connect(
select,
perform
)(CommentReply);