Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
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;
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,