add confirm box
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import { connect } from 'react-redux';
|
||||
import { add_dialog_msg, toggle_loading } from '../../../actions';
|
||||
import { add_dialog_msg, toggle_loading, add_confirm } from '../../../actions';
|
||||
import LocationPage from '../../../components/AdminPage/Wristband/Location';
|
||||
|
||||
|
||||
@@ -13,6 +13,9 @@ const mapDispatchToProps = (dispatch, ownProps) => ({
|
||||
},
|
||||
toggleLoading: (flag = false) => {
|
||||
dispatch(toggle_loading(flag));
|
||||
},
|
||||
callConfirm: (msg, act = null) => {
|
||||
dispatch(add_confirm(msg, act))
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user