mirror of
https://github.com/Radarr/Radarr
synced 2026-05-05 03:50:58 +02:00
(cherry picked from commit 0210b5c5c1b5c56dce6f4c9f3f56366adba950d3) Fixup Calendar for Full Color View, Final CSS fixups Update localization
21 lines
604 B
JavaScript
21 lines
604 B
JavaScript
import { connect } from 'react-redux';
|
|
import { createSelector } from 'reselect';
|
|
import createUISettingsSelector from 'Store/Selectors/createUISettingsSelector';
|
|
import Legend from './Legend';
|
|
|
|
function createMapStateToProps() {
|
|
return createSelector(
|
|
(state) => state.calendar.options,
|
|
(state) => state.calendar.view,
|
|
createUISettingsSelector(),
|
|
(calendarOptions, view, uiSettings) => {
|
|
return {
|
|
...calendarOptions,
|
|
view,
|
|
colorImpairedMode: uiSettings.enableColorImpairedMode
|
|
};
|
|
}
|
|
);
|
|
}
|
|
|
|
export default connect(createMapStateToProps)(Legend);
|