Search.tsx 441 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
4
import { addEntry } from '../actions/schedule/schedule.actions';
import { searchCourses } from '../actions/search/search.actions';
import SearchRoot from '../components/SearchRoot';
Andrew Hrdy's avatar
Andrew Hrdy committed
5
6
7
import { State } from '../reducers';

const mapStateToProps = (state: State) => ({
David Haynes's avatar
David Haynes committed
8
    searchResults: state.searchResults,
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
14
    { searchCourses, addEntry }
)(SearchRoot);