mirror of
https://github.com/Radarr/Radarr.git
synced 2026-04-21 22:05:43 -04:00
c61735cde2
Closes #7949 Closes #7950
46 lines
1022 B
JavaScript
46 lines
1022 B
JavaScript
import PropTypes from 'prop-types';
|
|
import React, { Component } from 'react';
|
|
import { connect } from 'react-redux';
|
|
import { createSelector } from 'reselect';
|
|
import createUISettingsSelector from 'Store/Selectors/createUISettingsSelector';
|
|
import MovieFileStatus from './MovieFileStatus';
|
|
|
|
function createMapStateToProps() {
|
|
return createSelector(
|
|
createUISettingsSelector(),
|
|
(uiSettings) => {
|
|
return {
|
|
colorImpairedMode: uiSettings.enableColorImpairedMode
|
|
};
|
|
}
|
|
);
|
|
}
|
|
|
|
const mapDispatchToProps = {
|
|
};
|
|
|
|
class MovieFileStatusConnector extends Component {
|
|
|
|
//
|
|
// Render
|
|
|
|
render() {
|
|
return (
|
|
<MovieFileStatus
|
|
{...this.props}
|
|
/>
|
|
);
|
|
}
|
|
}
|
|
|
|
MovieFileStatusConnector.propTypes = {
|
|
isAvailable: PropTypes.bool,
|
|
monitored: PropTypes.bool,
|
|
grabbed: PropTypes.bool,
|
|
movieFile: PropTypes.object,
|
|
queueStatus: PropTypes.string,
|
|
queueState: PropTypes.string
|
|
};
|
|
|
|
export default connect(createMapStateToProps, mapDispatchToProps)(MovieFileStatusConnector);
|