diff --git a/js/components/PlaylistWindow/PlaylistShade.js b/js/components/PlaylistWindow/PlaylistShade.js index 85e95e41..76402e68 100644 --- a/js/components/PlaylistWindow/PlaylistShade.js +++ b/js/components/PlaylistWindow/PlaylistShade.js @@ -80,12 +80,11 @@ class PlaylistShade extends React.Component { } } -const mapDispatchToProps = dispatch => ({ - focusPlaylist: () => - dispatch({ type: SET_FOCUSED_WINDOW, window: WINDOWS.PLAYLIST }), +const mapDispatchToProps = { + focusPlaylist: () => ({ type: SET_FOCUSED_WINDOW, window: WINDOWS.PLAYLIST }), close: () => closeWindow("playlist"), - toggleShade: () => dispatch(togglePlaylistShadeMode()) -}); + toggleShade: () => togglePlaylistShadeMode() +}; const mapStateToProps = state => { const {