{__('Red Hat Repositories')}
{__('Available Repositories')}
this.props.updateRecommendedRepositorySets(value)}
className="recommended-repositories-toggler"
/>
{getSetsComponent(
repositorySets,
(pagination) => {
this.props.loadRepositorySets({
...pagination,
search: repositorySets.search,
});
},
)}
{__('Enabled Repositories')}
{getEnabledComponent(
enabledRepositories,
(pagination) => {
this.props.loadEnabledRepos({
...pagination,
search: enabledRepositories.search,
});
},
)}
);
}
}
RedHatRepositoriesPage.propTypes = {
loadEnabledRepos: PropTypes.func.isRequired,
loadRepositorySets: PropTypes.func.isRequired,
updateRecommendedRepositorySets: PropTypes.func.isRequired,
enabledRepositories: PropTypes.shape({
loading: PropTypes.bool,
search: PropTypes.shape({}),
missingPermissions: PropTypes.arrayOf(PropTypes.string),
}).isRequired,
repositorySets: PropTypes.shape({
recommended: PropTypes.bool,
loading: PropTypes.bool,
search: PropTypes.shape({}),
missingPermissions: PropTypes.array,
}).isRequired,
};
export default RedHatRepositoriesPage;