mirror of
https://github.com/Unleash/unleash.git
synced 2024-10-18 20:09:08 +02:00
5342c86b60
Co-authored-by: Christopher Kolstad <chriswk@getunleash.ai> Co-authored-by: Fredrik Strand Oseberg <fredrik.no@gmail.com>
14 lines
458 B
JavaScript
14 lines
458 B
JavaScript
import { connect } from 'react-redux';
|
|
import ProjectSelectComponent from './project-select-component';
|
|
import { fetchProjects } from './../../store/project/actions';
|
|
import { P } from '../common/flags';
|
|
|
|
const mapStateToProps = state => ({
|
|
projects: state.projects.toJS(),
|
|
enabled: !!state.uiConfig.toJS().flags[P],
|
|
});
|
|
|
|
const ProjectContainer = connect(mapStateToProps, { fetchProjects })(ProjectSelectComponent);
|
|
|
|
export default ProjectContainer;
|