2018-02-08 12:01:06 +01:00
|
|
|
/*
|
|
|
|
*
|
|
|
|
* HomePage
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
import React from 'react';
|
|
|
|
import PropTypes from 'prop-types';
|
|
|
|
import { connect } from 'react-redux';
|
|
|
|
import { createStructuredSelector } from 'reselect';
|
|
|
|
import { injectIntl } from 'react-intl';
|
|
|
|
import { bindActionCreators, compose } from 'redux';
|
|
|
|
|
|
|
|
import injectReducer from 'utils/injectReducer';
|
|
|
|
import injectSaga from 'utils/injectSaga';
|
|
|
|
|
|
|
|
// Selectors
|
|
|
|
import selectHomePage from './selectors';
|
|
|
|
|
|
|
|
// Styles
|
|
|
|
import styles from './styles.scss';
|
|
|
|
|
|
|
|
import reducer from './reducer';
|
|
|
|
import saga from './saga';
|
|
|
|
|
|
|
|
export class HomePage extends React.Component {
|
|
|
|
render() {
|
|
|
|
return (
|
2018-02-15 15:55:36 +01:00
|
|
|
<div></div>
|
2018-02-08 12:01:06 +01:00
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
HomePage.contextTypes = {
|
|
|
|
router: PropTypes.object,
|
|
|
|
};
|
|
|
|
|
|
|
|
HomePage.propTypes = {
|
|
|
|
// homePage: PropTypes.object,
|
|
|
|
};
|
|
|
|
|
|
|
|
function mapDispatchToProps(dispatch) {
|
|
|
|
return bindActionCreators(
|
|
|
|
{
|
|
|
|
// Your actions here
|
|
|
|
},
|
|
|
|
dispatch,
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
const mapStateToProps = createStructuredSelector({
|
|
|
|
homePage: selectHomePage(),
|
|
|
|
});
|
|
|
|
|
|
|
|
const withConnect = connect(mapStateToProps, mapDispatchToProps);
|
|
|
|
|
|
|
|
const withReducer = injectReducer({ key: 'homePage', reducer });
|
|
|
|
const withSaga = injectSaga({ key: 'homePage', saga });
|
|
|
|
|
|
|
|
export default compose(
|
|
|
|
withReducer,
|
|
|
|
withSaga,
|
|
|
|
withConnect,
|
|
|
|
)(injectIntl(HomePage));
|