mirror of
https://github.com/Unleash/unleash.git
synced 2025-10-27 11:02:16 +01:00
20 lines
461 B
JavaScript
20 lines
461 B
JavaScript
import { connect } from 'react-redux';
|
|
import { toggleFeature, fetchFeatureToggles } from '../../store/feature-actions';
|
|
import FeatureList from './FeatureList';
|
|
|
|
const mapStateToProps = (state) => ({
|
|
features: state.features,
|
|
});
|
|
|
|
const mapDispatchToProps = {
|
|
onFeatureClick: toggleFeature,
|
|
fetchFeatureToggles,
|
|
};
|
|
|
|
const FeatureListContainer = connect(
|
|
mapStateToProps,
|
|
mapDispatchToProps
|
|
)(FeatureList);
|
|
|
|
export default FeatureListContainer;
|