How to use the strapi-helper-plugin.routerPropTypes function in strapi-helper-plugin

To help you get started, we’ve selected a few strapi-helper-plugin examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github strapi / strapi / packages / strapi-plugin-content-type-builder / admin / src / containers / HomePage / index.js View on Github external
canOpenModal: PropTypes.bool,
  connections: PropTypes.array,
  createTempContentType: PropTypes.func.isRequired,
  deleteModel: PropTypes.func.isRequired,
  models: PropTypes.array,
  modifiedData: PropTypes.object,
  newContentType: PropTypes.shape({
    collectionName: PropTypes.string,
    connection: PropTypes.string,
    description: PropTypes.string,
    mainField: PropTypes.string,
    name: PropTypes.string,
    attributes: PropTypes.object,
  }).isRequired,
  onChangeNewContentTypeMainInfos: PropTypes.func.isRequired,
  ...routerPropTypes().history.isRequired,
};

export default HomePage;
github strapi / strapi / packages / strapi-plugin-content-type-builder / admin / src / containers / ModelPage / index.js View on Github external
newContentType: PropTypes.object.isRequired,
  onChangeAttribute: PropTypes.func.isRequired,
  onChangeRelation: PropTypes.func.isRequired,
  onChangeRelationNature: PropTypes.func.isRequired,
  onChangeRelationTarget: PropTypes.func.isRequired,
  resetEditExistingContentType: PropTypes.func.isRequired,
  resetEditTempContentType: PropTypes.func.isRequired,
  saveEditedAttribute: PropTypes.func.isRequired,
  saveEditedAttributeRelation: PropTypes.func.isRequired,
  setTemporaryAttribute: PropTypes.func.isRequired,
  setTemporaryAttributeRelation: PropTypes.func.isRequired,
  submitContentType: PropTypes.func.isRequired,
  submitTempContentType: PropTypes.func.isRequired,
  temporaryAttribute: PropTypes.object.isRequired,
  temporaryAttributeRelation: PropTypes.object.isRequired,
  ...routerPropTypes({ params: PropTypes.string }).isRequired,
};

export function mapDispatchToProps(dispatch) {
  return bindActionCreators(
    {
      addAttributeToExistingContentType,
      addAttributeToTempContentType,
      clearTemporaryAttribute,
      deleteModel,
      deleteModelAttribute,
      deleteTemporaryModel,
      onChangeAttribute,
      resetEditExistingContentType,
      resetEditTempContentType,
      submitContentType,
      submitTempContentType,