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 createMetadataProfileSelector from 'Store/Selectors/createMetadataProfileSelector';
import createQualityProfileSelector from 'Store/Selectors/createQualityProfileSelector';
import ArtistEditorRow from './ArtistEditorRow';
function createMapStateToProps() {
return createSelector(
createMetadataProfileSelector(),
createQualityProfileSelector(),
(metadataProfile, qualityProfile) => {
return {
metadataProfile,
qualityProfile
};
}
);
}
function ArtistEditorRowConnector(props) {
return (
<ArtistEditorRow
{...props}
/>
);
}
ArtistEditorRowConnector.propTypes = {
qualityProfileId: PropTypes.number.isRequired
};
export default connect(createMapStateToProps)(ArtistEditorRowConnector);