mirror of
https://github.com/Unleash/unleash.git
synced 2025-10-22 11:18:20 +02:00
17 lines
420 B
JavaScript
17 lines
420 B
JavaScript
import { connect } from 'react-redux';
|
|
import HistoryComponent from './history-component';
|
|
import { fetchHistory } from '../../store/history-actions';
|
|
|
|
const mapStateToProps = state => {
|
|
const history = state.history.get('list').toArray();
|
|
return {
|
|
history,
|
|
};
|
|
};
|
|
|
|
const HistoryListContainer = connect(mapStateToProps, { fetchHistory })(
|
|
HistoryComponent
|
|
);
|
|
|
|
export default HistoryListContainer;
|