Updated group create to close modal on submit

• Updated:
- group create to close modal on submit
This commit is contained in:
mgabdev 2020-06-05 18:28:50 -04:00
parent 27f3658fd9
commit 85ec3060d9
1 changed files with 5 additions and 1 deletions

View File

@ -10,6 +10,7 @@ import {
setGroup,
resetEditor,
} from '../actions/group_editor'
import { closeModal } from '../actions/modal'
import ColumnIndicator from '../components/column_indicator'
import Button from '../components/button'
import Divider from '../components/divider'
@ -60,7 +61,10 @@ const mapDispatchToProps = (dispatch) => ({
onSetGroup: (group) => {
dispatch(setGroup(group))
},
onSubmit: (routerHistory) => dispatch(submit(routerHistory)),
onSubmit: (routerHistory) => {
dispatch(submit(routerHistory))
dispatch(closeModal())
},
})
export default