mario-core 2.9.67-beta → 2.9.68-beta

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.
@@ -0,0 +1,5 @@
1
+ export interface IModelSelectRoles {
2
+ isOpenModel: boolean;
3
+ userRoles: string[];
4
+ onSelectUserRoles: Function;
5
+ }
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import { IModelSelectRoles } from "../constant/type";
3
+ declare const ModelSelectRole: ({ isOpenModel, userRoles, onSelectUserRoles }: IModelSelectRoles) => JSX.Element;
4
+ export default ModelSelectRole;
package/dist/index.js CHANGED
@@ -1305,7 +1305,7 @@ var use_for$1 = "Use for";
1305
1305
  var admin_training$1 = "Admin training";
1306
1306
  var teacher_training$1 = "Teacher training";
1307
1307
  var created_time$1 = "Create time";
1308
- var total_reflections$1 = "Total Reflections:";
1308
+ var total_reflections$1 = "Total Reflections";
1309
1309
  var student_training$1 = "Student training";
1310
1310
  var create_destination$1 = "Create Destination";
1311
1311
  var total_of_designation$1 = "Total of Designation";
@@ -10426,13 +10426,7 @@ var useUserList = function useUserList() {
10426
10426
 
10427
10427
  var swicthUser = React.useCallback(function (id) {
10428
10428
  try {
10429
- var _temp7 = function _temp7() {
10430
- dispatch(setLoading(false));
10431
- };
10432
-
10433
- dispatch(setLoading(true));
10434
-
10435
- var _temp8 = _catch(function () {
10429
+ var _temp6 = _catch(function () {
10436
10430
  return Promise.resolve(switchAccountUser(id)).then(function (res) {
10437
10431
  var data = res.data;
10438
10432
  dispatch(setModal({
@@ -10441,13 +10435,13 @@ var useUserList = function useUserList() {
10441
10435
  message: "Do you want to impersonate this user?",
10442
10436
  onConfirm: function () {
10443
10437
  try {
10444
- var _temp11 = function _temp11() {
10438
+ var _temp9 = function _temp9() {
10445
10439
  dispatch(setLoading(false));
10446
10440
  };
10447
10441
 
10448
10442
  dispatch(setLoading(true));
10449
10443
 
10450
- var _temp12 = _catch(function () {
10444
+ var _temp10 = _catch(function () {
10451
10445
  var req = {
10452
10446
  email: data.email,
10453
10447
  password: "default",
@@ -10466,7 +10460,7 @@ var useUserList = function useUserList() {
10466
10460
  });
10467
10461
  });
10468
10462
 
10469
- return Promise.resolve(_temp12 && _temp12.then ? _temp12.then(_temp11) : _temp11(_temp12));
10463
+ return Promise.resolve(_temp10 && _temp10.then ? _temp10.then(_temp9) : _temp9(_temp10));
10470
10464
  } catch (e) {
10471
10465
  return Promise.reject(e);
10472
10466
  }
@@ -10482,7 +10476,7 @@ var useUserList = function useUserList() {
10482
10476
  }));
10483
10477
  });
10484
10478
 
10485
- return Promise.resolve(_temp8 && _temp8.then ? _temp8.then(_temp7) : _temp7(_temp8));
10479
+ return Promise.resolve(_temp6 && _temp6.then ? _temp6.then(function () {}) : void 0);
10486
10480
  } catch (e) {
10487
10481
  return Promise.reject(e);
10488
10482
  }