2018-02-26 12:16:15 +01:00
|
|
|
/**
|
|
|
|
*
|
|
|
|
* ConfigPage
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
import React from 'react';
|
2018-02-27 18:43:33 +01:00
|
|
|
import PropTypes from 'prop-types';
|
2018-02-26 12:16:15 +01:00
|
|
|
import { connect } from 'react-redux';
|
|
|
|
import { bindActionCreators, compose } from 'redux';
|
|
|
|
|
|
|
|
// You can find these utils in either
|
|
|
|
// ./node_modules/strapi-helper-plugin/lib/src
|
|
|
|
// or strapi/packages/strapi-helper-plugin/lib/src
|
|
|
|
import injectReducer from 'utils/injectReducer';
|
|
|
|
import injectSaga from 'utils/injectSaga';
|
|
|
|
|
|
|
|
import reducer from './reducer';
|
|
|
|
import saga from './saga';
|
|
|
|
import selectConfigPage from './selectors';
|
|
|
|
|
|
|
|
class ConfigPage extends React.PureComponent {
|
|
|
|
render() {
|
|
|
|
return (
|
|
|
|
<div>ConfigPage container</div>
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-02-27 18:43:33 +01:00
|
|
|
ConfigPage.contextTypes = {
|
|
|
|
appEnvironments: PropTypes.array,
|
|
|
|
};
|
|
|
|
|
2018-02-26 12:16:15 +01:00
|
|
|
ConfigPage.defaultProps = {};
|
|
|
|
ConfigPage.propTypes = {};
|
|
|
|
|
|
|
|
function mapDispatchToProps(dispatch) {
|
|
|
|
return bindActionCreators(
|
|
|
|
{},
|
|
|
|
dispatch,
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
const mapStateToProps = selectConfigPage;
|
|
|
|
|
|
|
|
const withConnect = connect(mapStateToProps, mapDispatchToProps);
|
|
|
|
|
|
|
|
const withReducer = injectReducer({ key: 'configPage', reducer });
|
|
|
|
const withSaga = injectSaga({ key: 'configPage', saga });
|
|
|
|
|
|
|
|
export default compose(
|
|
|
|
withReducer,
|
|
|
|
withSaga,
|
|
|
|
withConnect,
|
|
|
|
)(ConfigPage);
|