diff --git a/js/components/Shade.jsx b/js/components/Shade.jsx index 8912b0e2..b7778ecb 100644 --- a/js/components/Shade.jsx +++ b/js/components/Shade.jsx @@ -6,7 +6,7 @@ import {TOGGLE_SHADE_MODE} from '../actionTypes'; const Shade = (props) =>
; 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);