64 lines
1.5 KiB
JavaScript
Raw Normal View History

/**
*
* EditPage
*
*/
import React from 'react';
// import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { Helmet } from 'react-helmet';
import { createStructuredSelector } from 'reselect';
import { bindActionCreators, compose } from 'redux';
import injectSaga from 'utils/injectSaga';
import injectReducer from 'utils/injectReducer';
import makeSelectEditPage from './selectors';
import reducer from './reducer';
import saga from './saga';
export class EditPage extends React.Component { // eslint-disable-line react/prefer-stateless-function
render() {
return (
<div>
<Helmet>
<title>EditPage</title>
<meta name="description" content="Description of EditPage" />
</Helmet>
</div>
);
}
}
EditPage.propTypes = {
};
const mapStateToProps = createStructuredSelector({
editpage: makeSelectEditPage(),
});
function mapDispatchToProps(dispatch) {
return bindActionCreators(
{},
dispatch
);
}
const withConnect = connect(mapStateToProps, mapDispatchToProps);
/* Remove this line if the container doesn't have a route and
* check the documentation to see how to create the container's store
*/
const withReducer = injectReducer({ key: 'editPage', reducer });
/* Remove the line below the container doesn't have a route and
* check the documentation to see how to create the container's store
*/
const withSaga = injectSaga({ key: 'editPage', saga });
export default compose(
withReducer,
withSaga,
withConnect,
)(EditPage);