File size: 409 Bytes
f5071ca |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
import { connect } from 'react-redux';
import SpotMap from './spot_map';
import {updateFilter} from '../../actions/filter_actions';
const msp = (state,ownProps) => ({
search: state.ui.search,
spots: Object.values(state.entities.spots),
});
const mdp = dispatch => ({
updateFilter: (filter,value) => dispatch(updateFilter(filter,value))
});
export default connect(
msp,
mdp
)(SpotMap); |