1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-09-15 17:50:48 +02:00
unleash.unleash/frontend/src/component/history/history-list-container.jsx
Luan Raithz Machado c25c0a76a8 fix: babel-preset-env (#190)
* changed do @babel/preset-env

* runned lint fix

* added beforeEach in ui-config-store-test
2019-10-09 19:58:49 +02:00

22 lines
586 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 || {};
const location = state.settings.toJS().location || {};
return {
settings,
location,
};
};
const HistoryListContainer = connect(
mapStateToProps,
{
updateSetting: updateSettingForGroup('history'),
}
)(HistoryListToggleComponent);
export default HistoryListContainer;