2018-08-30 14:25:33 +00:00
|
|
|
import { connect } from 'react-redux';
|
2019-09-05 16:07:14 +00:00
|
|
|
import { getVersion } from '../actions';
|
2018-08-30 14:25:33 +00:00
|
|
|
import Header from '../components/Header';
|
|
|
|
|
|
|
|
const mapStateToProps = (state) => {
|
|
|
|
const { dashboard } = state;
|
|
|
|
const props = { dashboard };
|
|
|
|
return props;
|
|
|
|
};
|
|
|
|
|
2019-09-05 16:07:14 +00:00
|
|
|
const mapDispatchToProps = {
|
|
|
|
getVersion,
|
|
|
|
};
|
|
|
|
|
2018-08-30 14:25:33 +00:00
|
|
|
export default connect(
|
|
|
|
mapStateToProps,
|
2019-09-05 16:07:14 +00:00
|
|
|
mapDispatchToProps,
|
2018-08-30 14:25:33 +00:00
|
|
|
)(Header);
|