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
Ivar Conradi Østhus 5342c86b60 fix: one and only one front (#244)
Co-authored-by: Christopher Kolstad <chriswk@getunleash.ai>
Co-authored-by: Fredrik Strand Oseberg <fredrik.no@gmail.com>
2021-02-24 11:03:18 +01:00

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;