mirror of
https://github.com/strapi/strapi.git
synced 2025-10-13 09:03:25 +00:00
Update strapi-generate-plugin
This commit is contained in:
parent
e109984181
commit
d77456e78c
@ -10,7 +10,7 @@ import PropTypes from 'prop-types';
|
||||
import { connect } from 'react-redux';
|
||||
import { createStructuredSelector } from 'reselect';
|
||||
import { Switch, Route } from 'react-router-dom';
|
||||
import { compose } from 'redux';
|
||||
import { bindActionCreators, compose } from 'redux';
|
||||
|
||||
import HomePage from 'containers/HomePage';
|
||||
|
||||
@ -28,14 +28,19 @@ class App extends React.Component {
|
||||
}
|
||||
}
|
||||
|
||||
App.propTypes = {
|
||||
match: PropTypes.object,
|
||||
App.contextTypes = {
|
||||
plugins: PropTypes.object,
|
||||
router: PropTypes.object.isRequired,
|
||||
updatePlugin: PropTypes.func,
|
||||
};
|
||||
|
||||
App.propTypes = {};
|
||||
|
||||
export function mapDispatchToProps(dispatch) {
|
||||
return {
|
||||
return bindActionCreators(
|
||||
{},
|
||||
dispatch,
|
||||
};
|
||||
);
|
||||
}
|
||||
|
||||
const mapStateToProps = createStructuredSelector({});
|
||||
|
@ -68,10 +68,9 @@ HomePage.propTypes = {
|
||||
data: PropTypes.oneOfType([
|
||||
PropTypes.bool,
|
||||
PropTypes.object,
|
||||
]),
|
||||
exposedComponents: PropTypes.object,
|
||||
loadData: PropTypes.func,
|
||||
loading: PropTypes.bool,
|
||||
]).isRequired,
|
||||
loadData: PropTypes.func.isRequired,
|
||||
loading: PropTypes.bool.isRequired,
|
||||
};
|
||||
|
||||
function mapDispatchToProps(dispatch) {
|
||||
|
@ -1,6 +1,5 @@
|
||||
import { takeLatest } from 'redux-saga';
|
||||
import { LOCATION_CHANGE } from 'react-router-redux';
|
||||
import { put, fork, take, cancel } from 'redux-saga/effects';
|
||||
import { takeLatest, put, fork, take, cancel } from 'redux-saga/effects';
|
||||
|
||||
import { loadedData } from './actions';
|
||||
import { LOAD_DATA } from './constants';
|
||||
|
@ -43,7 +43,7 @@ module.exports = scope => {
|
||||
},
|
||||
'dependencies': {},
|
||||
'devDependencies': {
|
||||
'strapi-helper-plugin': '3.0.0-alpha.4.8'
|
||||
'strapi-helper-plugin': '3.0.0-alpha.6.3'
|
||||
},
|
||||
'author': {
|
||||
'name': scope.author || 'A Strapi developer',
|
||||
|
Loading…
x
Reference in New Issue
Block a user