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.
Readarr/frontend/src/Artist/Editor/ArtistEditorRowConnector.js

35 lines
908 B

import PropTypes from 'prop-types';
import React from 'react';
import { connect } from 'react-redux';
import { createSelector } from 'reselect';
import createLanguageProfileSelector from 'Store/Selectors/createLanguageProfileSelector';
import createQualityProfileSelector from 'Store/Selectors/createQualityProfileSelector';
import ArtistEditorRow from './ArtistEditorRow';
function createMapStateToProps() {
return createSelector(
createLanguageProfileSelector(),
createQualityProfileSelector(),
(languageProfile, qualityProfile) => {
return {
languageProfile,
qualityProfile
};
}
);
}
function ArtistEditorRowConnector(props) {
return (
<ArtistEditorRow
{...props}
/>
);
}
ArtistEditorRowConnector.propTypes = {
qualityProfileId: PropTypes.number.isRequired
};
export default connect(createMapStateToProps)(ArtistEditorRowConnector);