Updated Switch to return boolean instead of event
• Updated: - Switch to return boolean instead of event - all components usage
This commit is contained in:
@@ -74,8 +74,8 @@ const mapStateToProps = (state, { id }) => ({
|
||||
})
|
||||
|
||||
const mapDispatchToProps = (dispatch, { id }) => ({
|
||||
onToggle(e) {
|
||||
dispatch(toggleStatusReport(id, e.target.checked))
|
||||
onToggle(checked) {
|
||||
dispatch(toggleStatusReport(id, checked))
|
||||
},
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user