mirror of
https://github.com/Readarr/Readarr.git
synced 2026-04-26 22:46:37 -04:00
6581b3a2c5
* New: UI Updates, Tag manager, More custom filters * fixup! Fix ScanFixture Unit Tests * Fixed: Sentry Errors from UI don't have release, branch, environment * Changed: Bump Mobile Detect for New Device Detection * Fixed: Build on changes to package.json * fixup! Add MetadataProfile filter option * fixup! Tag Note, Blacklist, Manual Import * fixup: Remove connectSection * fixup: root folder comment
29 lines
838 B
JavaScript
29 lines
838 B
JavaScript
import { connect } from 'react-redux';
|
|
import { createSelector } from 'reselect';
|
|
import createClientSideCollectionSelector from 'Store/Selectors/createClientSideCollectionSelector';
|
|
import { setArtistSort } from 'Store/Actions/artistIndexActions';
|
|
import ArtistIndexTable from './ArtistIndexTable';
|
|
|
|
function createMapStateToProps() {
|
|
return createSelector(
|
|
(state) => state.app.dimensions,
|
|
createClientSideCollectionSelector('artist', 'artistIndex'),
|
|
(dimensions, artist) => {
|
|
return {
|
|
isSmallScreen: dimensions.isSmallScreen,
|
|
...artist
|
|
};
|
|
}
|
|
);
|
|
}
|
|
|
|
function createMapDispatchToProps(dispatch, props) {
|
|
return {
|
|
onSortPress(sortKey) {
|
|
dispatch(setArtistSort({ sortKey }));
|
|
}
|
|
};
|
|
}
|
|
|
|
export default connect(createMapStateToProps, createMapDispatchToProps)(ArtistIndexTable);
|