Update strapi-generate-plugin

This commit is contained in:
cyril lopez 2017-10-23 16:12:37 +02:00
parent e109984181
commit d77456e78c
4 changed files with 15 additions and 12 deletions

View File

@ -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({});

View File

@ -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) {

View File

@ -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';

View File

@ -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',