mirror of
https://github.com/Unleash/unleash.git
synced 2025-09-15 17:50:48 +02:00
* changed do @babel/preset-env * runned lint fix * added beforeEach in ui-config-store-test
22 lines
586 B
JavaScript
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;
|