Rewrite actions/modal and reducers/modal with typescript (#24833)
This commit is contained in:
committed by
GitHub
parent
4197b5e4c8
commit
38c6216082
@@ -16,8 +16,14 @@ const mapDispatchToProps = dispatch => ({
|
||||
},
|
||||
|
||||
isUserTouching,
|
||||
onModalOpen: props => dispatch(openModal('ACTIONS', props)),
|
||||
onModalClose: () => dispatch(closeModal()),
|
||||
onModalOpen: props => dispatch(openModal({
|
||||
modalType: 'ACTIONS',
|
||||
modalProps: props,
|
||||
})),
|
||||
onModalClose: () => dispatch(closeModal({
|
||||
modalType: undefined,
|
||||
ignoreFocus: false,
|
||||
})),
|
||||
|
||||
});
|
||||
|
||||
|
Reference in New Issue
Block a user