You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Lidarr/frontend/src/Artist/History/ArtistHistoryRowConnector.js

27 lines
710 B

import { connect } from 'react-redux';
import { createSelector } from 'reselect';
import { fetchHistory, markAsFailed } from 'Store/Actions/historyActions';
import createAlbumSelector from 'Store/Selectors/createAlbumSelector';
import createArtistSelector from 'Store/Selectors/createArtistSelector';
import ArtistHistoryRow from './ArtistHistoryRow';
function createMapStateToProps() {
return createSelector(
createArtistSelector(),
createAlbumSelector(),
(artist, album) => {
return {
artist,
album
};
}
);
}
const mapDispatchToProps = {
fetchHistory,
markAsFailed
};
export default connect(createMapStateToProps, mapDispatchToProps)(ArtistHistoryRow);