This commit is contained in:
mgabdev
2020-05-14 16:45:39 -04:00
parent 4acc21944c
commit 0626928899
30 changed files with 286 additions and 100 deletions

View File

@@ -84,6 +84,7 @@ class GroupCreate extends ImmutablePureComponent {
onSetGroup: PropTypes.func.isRequired,
onSubmit: PropTypes.func.isRequired,
isSubmitting: PropTypes.bool,
onClose: PropTypes.func,
}
updateOnProps = [
@@ -114,6 +115,7 @@ class GroupCreate extends ImmutablePureComponent {
handleSubmit = (e) => {
e.preventDefault()
if (this.props.onClose) this.props.onClose()
this.props.onSubmit(this.context.router.history)
}