File size: 437 Bytes
f5071ca |
1 2 3 4 5 6 7 8 9 10 11 12 13 |
import { connect } from 'react-redux';
import { requestPostComments } from '../../actions/comment_actions';
import CommentIndex from './comment_index';
const mapStateToProps = (state, ownProps) => ({
postId: ownProps.postId,
comments: state.entities.comments[ownProps.postId],
users: state.entities.users
});
const mapDispatchToProps = dispatch => ({});
export default connect(mapStateToProps, mapDispatchToProps)(CommentIndex); |