mirror of
https://github.com/Unleash/unleash.git
synced 2025-09-10 17:53:36 +02:00
18 lines
494 B
JavaScript
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;
|