Files
frontend-app-gradebook/src/containers/CommentSearchPage/index.jsx
Rick Reilly bff0375176 First commit
2018-10-17 11:50:17 -04:00

25 lines
544 B
JavaScript
Executable File

import { connect } from 'react-redux';
import CommentSearch from '../../components/CommentSearch';
import { fetchComment } from '../../data/actions/comment';
const mapStateToProps = state => (
{
commentDetails: state.comment.details,
errorFetching: state.comment.errorFetching,
}
);
const mapDispatchToProps = dispatch => (
{
getComment: commentId => dispatch(fetchComment(commentId)),
}
);
const CommentSearchPage = connect(
mapStateToProps,
mapDispatchToProps,
)(CommentSearch);
export default CommentSearchPage;