Updated Switch to return boolean instead of event

• Updated:
- Switch to return boolean instead of event
- all components usage
This commit is contained in:
mgabdev
2020-09-01 14:54:17 -05:00
parent fe0429d36b
commit 147f7ed878
5 changed files with 15 additions and 12 deletions

View File

@@ -320,11 +320,11 @@ const mapDispatchToProps = (dispatch) => ({
onChangeGroupCategory(e) {
dispatch(changeGroupCategory(e.target.value))
},
onChangeGroupIsPrivate(value) {
dispatch(changeGroupIsPrivate(value))
onChangeGroupIsPrivate(checked) {
dispatch(changeGroupIsPrivate(checked))
},
onChangeGroupIsVisible(value) {
dispatch(changeGroupIsVisible(value))
onChangeGroupIsVisible(checked) {
dispatch(changeGroupIsVisible(checked))
},
onResetEditor() {
dispatch(resetEditor())