1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-10-18 20:09:08 +02:00
unleash.unleash/frontend/src/component/feature/project-select-container.jsx

14 lines
458 B
React
Raw Normal View History

2020-11-20 15:35:41 +01:00
import { connect } from 'react-redux';
import ProjectSelectComponent from './project-select-component';
import { fetchProjects } from './../../store/project/actions';
import { P } from '../common/flags';
2020-11-20 15:35:41 +01:00
const mapStateToProps = state => ({
projects: state.projects.toJS(),
enabled: !!state.uiConfig.toJS().flags[P],
});
2020-11-20 15:35:41 +01:00
const ProjectContainer = connect(mapStateToProps, { fetchProjects })(ProjectSelectComponent);
export default ProjectContainer;