Search.tsx 457 Bytes
Newer Older
David Haynes's avatar
David Haynes committed
1
import { connect } from 'react-redux';
David Haynes's avatar
David Haynes committed
2
3
import { addCourseSection } from '../actions/schedule/schedule.actions';
import { searchCourseSections } from '../actions/search/search.actions';
David Haynes's avatar
David Haynes committed
4
import SearchRoot from '../components/SearchRoot';
Andrew Hrdy's avatar
Andrew Hrdy committed
5
6
7
import { State } from '../reducers';

const mapStateToProps = (state: State) => ({
8
    search: state.search,
Andrew Hrdy's avatar
Andrew Hrdy committed
9
10
});

David Haynes's avatar
David Haynes committed
11
12
export default connect(
    mapStateToProps,
David Haynes's avatar
David Haynes committed
13
    { searchCourseSections, addCourseSection }
David Haynes's avatar
David Haynes committed
14
)(SearchRoot);