Fix shade button click handler

This commit is contained in:
Jordan Eldredge 2017-01-13 20:49:00 -08:00
parent 0b82b408a1
commit 5ec2489e90

View file

@ -6,7 +6,7 @@ import {TOGGLE_SHADE_MODE} from '../actionTypes';
const Shade = (props) => <div id='shade' onClick={props.handleClick} />;
const mapDispatchToProps = (dispatch) => ({
handleClick: dispatch({type: TOGGLE_SHADE_MODE})
handleClick: () => dispatch({type: TOGGLE_SHADE_MODE})
});
module.exports = connect(() => {}, mapDispatchToProps)(Shade);
module.exports = connect(() => ({}), mapDispatchToProps)(Shade);