поменять как было
const { onFilter, onSetSearch, onFetchData } = this.props;
const { search, shift, data, filteredData } = this.props.propReducer;
const { onFilter, onSetSearch, onFetchData,search, shift, data, filteredData } = this.props;
componentDidMount() {
this.props.onFetchData(days[this.props.propReducer.day]);
}
render() {
const { onFilter, onSetSearch, onFetchData } = this.props;
const { search, shift, data, filteredData } = this.props.propReducer;
const matchDispatchToProps = dispatch => ({
select: () => dispatch(select),
delete: () => dispatch(delete)
})
function matchDispatchToProps (dispatch) {
return (
select: () => dispatch(select),
delete: () => dispatch(delete)
)
}