65 lines
1.3 KiB
JavaScript
Raw Normal View History

2018-02-20 11:34:15 +01:00
/**
*
* ListPage
*
*/
import React from 'react';
// import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { bindActionCreators, compose } from 'redux';
import { createStructuredSelector } from 'reselect';
// import cn from 'classnames';
// Utils located in `strapi/packages/strapi-helper-plugin/lib/src/utils`;
import injectReducer from 'utils/injectReducer';
import injectSaga from 'utils/injectSaga';
// import getQueryParameters from 'utils/getQueryParameters';
import reducer from './reducer';
import saga from './saga';
import makeSelectListPage from './selectors';
// import styles from './styles.scss';
export class ListPage extends React.PureComponent {
render() {
console.log(this.props);
return (
<div>
ListPage component
</div>
);
}
}
ListPage.contextTypes = {};
ListPage.defaultProps = {};
ListPage.propTypes = {};
function mapDispatchToProps(dispatch) {
return bindActionCreators(
{
},
dispatch,
);
}
const mapStateToProps = createStructuredSelector({
listPage: makeSelectListPage(),
});
const withConnect = connect(mapStateToProps, mapDispatchToProps);
const withReducer = injectReducer({ key: 'listPage', reducer });
const withSaga = injectSaga({ key: 'listPage', saga });
export default compose(
withReducer,
withSaga,
withConnect,
)(ListPage);