This commit is contained in:
Jordan Eldredge 2018-05-23 19:50:47 +01:00
parent b495e4f958
commit bc41ba3ef2

View file

@ -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 {