74 lines
1.7 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';
2018-02-20 11:53:18 +01:00
import cn from 'classnames';
2018-02-20 11:34:15 +01:00
2018-02-20 11:53:18 +01:00
// You can find these components in either
// ./node_modules/strapi-helper-plugin/lib/src
// or strapi/packages/strapi-helper-plugin/lib/src
import PluginHeader from 'components/PluginHeader';
2018-02-20 11:34:15 +01:00
// 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';
2018-02-20 11:53:18 +01:00
import styles from './styles.scss';
2018-02-20 11:34:15 +01:00
export class ListPage extends React.PureComponent {
render() {
return (
<div>
2018-02-20 11:53:18 +01:00
<div className={cn('container-fluid', styles.containerFluid)}>
<PluginHeader
title={{
id: 'Content Manager',
}}
/>
</div>
2018-02-20 11:34:15 +01:00
</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);