|
|
@ -1,6 +1,5 @@
|
|
|
|
import { connect } from 'react-redux';
|
|
|
|
import { connect } from 'react-redux';
|
|
|
|
import { createSelector } from 'reselect';
|
|
|
|
import { createSelector } from 'reselect';
|
|
|
|
import createClientSideCollectionSelector from 'Store/Selectors/createClientSideCollectionSelector';
|
|
|
|
|
|
|
|
import createUISettingsSelector from 'Store/Selectors/createUISettingsSelector';
|
|
|
|
import createUISettingsSelector from 'Store/Selectors/createUISettingsSelector';
|
|
|
|
import createDimensionsSelector from 'Store/Selectors/createDimensionsSelector';
|
|
|
|
import createDimensionsSelector from 'Store/Selectors/createDimensionsSelector';
|
|
|
|
import ArtistIndexOverviews from './ArtistIndexOverviews';
|
|
|
|
import ArtistIndexOverviews from './ArtistIndexOverviews';
|
|
|
@ -8,18 +7,16 @@ import ArtistIndexOverviews from './ArtistIndexOverviews';
|
|
|
|
function createMapStateToProps() {
|
|
|
|
function createMapStateToProps() {
|
|
|
|
return createSelector(
|
|
|
|
return createSelector(
|
|
|
|
(state) => state.artistIndex.overviewOptions,
|
|
|
|
(state) => state.artistIndex.overviewOptions,
|
|
|
|
createClientSideCollectionSelector('artist', 'artistIndex'),
|
|
|
|
|
|
|
|
createUISettingsSelector(),
|
|
|
|
createUISettingsSelector(),
|
|
|
|
createDimensionsSelector(),
|
|
|
|
createDimensionsSelector(),
|
|
|
|
(overviewOptions, artist, uiSettings, dimensions) => {
|
|
|
|
(overviewOptions, uiSettings, dimensions) => {
|
|
|
|
return {
|
|
|
|
return {
|
|
|
|
overviewOptions,
|
|
|
|
overviewOptions,
|
|
|
|
showRelativeDates: uiSettings.showRelativeDates,
|
|
|
|
showRelativeDates: uiSettings.showRelativeDates,
|
|
|
|
shortDateFormat: uiSettings.shortDateFormat,
|
|
|
|
shortDateFormat: uiSettings.shortDateFormat,
|
|
|
|
longDateFormat: uiSettings.longDateFormat,
|
|
|
|
longDateFormat: uiSettings.longDateFormat,
|
|
|
|
timeFormat: uiSettings.timeFormat,
|
|
|
|
timeFormat: uiSettings.timeFormat,
|
|
|
|
isSmallScreen: dimensions.isSmallScreen,
|
|
|
|
isSmallScreen: dimensions.isSmallScreen
|
|
|
|
...artist
|
|
|
|
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|
|
|
|
}
|
|
|
|
);
|
|
|
|
);
|
|
|
|