Rewrite actions/modal and reducers/modal with typescript (#24833)
This commit is contained in:
committed by
GitHub
parent
4197b5e4c8
commit
38c6216082
@ -15,7 +15,10 @@ import DropdownMenu from './containers/dropdown_menu_container';
|
||||
const mapDispatchToProps = (dispatch, { statusId }) => ({
|
||||
|
||||
onItemClick (index) {
|
||||
dispatch(openModal('COMPARE_HISTORY', { index, statusId }));
|
||||
dispatch(openModal({
|
||||
modalType: 'COMPARE_HISTORY',
|
||||
modalProps: { index, statusId },
|
||||
}));
|
||||
},
|
||||
|
||||
});
|
||||
|
Reference in New Issue
Block a user