2020-11-20 15:35:41 +01:00
|
|
|
import { connect } from 'react-redux';
|
|
|
|
import ProjectSelectComponent from './project-select-component';
|
2020-11-27 22:23:44 +01:00
|
|
|
import { fetchProjects } from './../../store/project/actions';
|
2021-02-24 11:03:18 +01:00
|
|
|
import { P } from '../common/flags';
|
2020-11-20 15:35:41 +01:00
|
|
|
|
2021-02-24 11:03:18 +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;
|