@itilite/iui-user-management 0.4.22 → 0.4.24

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -5884,6 +5884,8 @@ var UserAddEdit = function UserAddEdit(props) {
5884
5884
  var _config$routes2, _config$routes2$users, _config$routes2$users2;
5885
5885
  (config === null || config === void 0 ? void 0 : (_config$routes2 = config.routes) === null || _config$routes2 === void 0 ? void 0 : (_config$routes2$users = _config$routes2.users) === null || _config$routes2$users === void 0 ? void 0 : (_config$routes2$users2 = _config$routes2$users.list) === null || _config$routes2$users2 === void 0 ? void 0 : _config$routes2$users2.path) && history.push(config.routes.users.list.path);
5886
5886
  }
5887
+ setFilesForDelete([]);
5888
+ setProfilePicDelete([]);
5887
5889
  })["catch"](function (err) {
5888
5890
  if (typeof err === 'object') {
5889
5891
  if (err.country_code) {
@@ -6187,6 +6189,9 @@ var UserAddEdit = function UserAddEdit(props) {
6187
6189
  if (!p.visibility) {
6188
6190
  return null;
6189
6191
  }
6192
+ if (p.name === 'profile_pic' && productAccess.expense) {
6193
+ return null;
6194
+ }
6190
6195
  return /*#__PURE__*/React.createElement(IUIGrid, {
6191
6196
  item: true,
6192
6197
  sm: 12,
@@ -8547,7 +8552,7 @@ var UserList = function UserList(_ref2) {
8547
8552
  if (res.status === true) {
8548
8553
  var _res$data;
8549
8554
  IUIToastMessageService$7.undoNotify( /*#__PURE__*/React.createElement(UndoButton, {
8550
- undo: function undo() {
8555
+ onUndo: function onUndo() {
8551
8556
  return dispatch(undoneSignUpRejection(userId));
8552
8557
  },
8553
8558
  msg: (res === null || res === void 0 ? void 0 : (_res$data = res.data) === null || _res$data === void 0 ? void 0 : _res$data.message) || 'Sign-up request rejected'