1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-10-18 20:09:08 +02:00
unleash.unleash/frontend/src/component/application/application-list-container.js

12 lines
360 B
JavaScript
Raw Normal View History

2016-12-03 15:54:15 +01:00
import { connect } from 'react-redux';
import ApplicationList from './application-list-component';
2016-12-05 15:15:01 +01:00
import { fetchAll } from '../../store/application/actions';
2016-12-03 15:54:15 +01:00
const mapStateToProps = state => ({
applications: state.applications.get('list').toJS(),
});
2016-12-03 15:54:15 +01:00
2016-12-05 15:15:01 +01:00
const Container = connect(mapStateToProps, { fetchAll })(ApplicationList);
2016-12-03 15:54:15 +01:00
2016-12-05 15:15:01 +01:00
export default Container;