1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-09-10 17:53:36 +02:00
unleash.unleash/frontend/src/component/history/history-list-container.jsx
2016-12-05 18:11:51 +01:00

18 lines
494 B
JavaScript

import { connect } from 'react-redux';
import HistoryListToggleComponent from './history-list-component';
import { updateSettingForGroup } from '../../store/settings/actions';
const mapStateToProps = (state) => {
const settings = state.settings.toJS().history || {};
return {
settings,
};
};
const HistoryListContainer = connect(mapStateToProps, {
updateSetting: updateSettingForGroup('history'),
})(HistoryListToggleComponent);
export default HistoryListContainer;