Search.tsx 448 Bytes
Newer Older
David Haynes's avatar
David Haynes committed
1
2
3
import { connect } from 'react-redux';
import { addSection } from '../actions/schedule/schedule.actions';
import { searchSections } from '../actions/search/search.actions';
4
import Search from '../components/Search';
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
    searchedSections: state.search.searchedSections,
Andrew Hrdy's avatar
Andrew Hrdy committed
9
10
});

David Haynes's avatar
David Haynes committed
11
12
13
14
export default connect(
    mapStateToProps,
    { searchSections, addSection }
)(Search);