mirror of
https://github.com/captbaritone/webamp.git
synced 2026-08-01 22:45:18 +00:00
Fix shade button click handler
This commit is contained in:
parent
0b82b408a1
commit
5ec2489e90
1 changed files with 2 additions and 2 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue