@saasquatch/mint-components 2.0.8-6 → 2.0.8-7

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.
@@ -3368,7 +3368,7 @@ const PayoutStatusAlert = class {
3368
3368
  }
3369
3369
  };
3370
3370
  function useDemoPayoutStatusAlert(props) {
3371
- var _a, _b, _c, _d;
3371
+ var _a, _b;
3372
3372
  const states = extractProps.parseStates(props.stateController);
3373
3373
  const formatted = Object.keys(states).reduce((prev, key) => key === "sqm-payout-status-alert"
3374
3374
  ? { ...prev, ...states[key] }
@@ -3379,17 +3379,11 @@ function useDemoPayoutStatusAlert(props) {
3379
3379
  console.log("the value of states is ", states);
3380
3380
  console.log("the value of formatted states is ", formatted);
3381
3381
  return cjs.cjs({
3382
- // states: {
3383
- // error: props.demoData.states.error || false,
3384
- // status: states.status,
3385
- // loading: props.demoData.states.loading || false,
3386
- // veriffLoading: props.demoData.states.veriffLoading || false,
3387
- // },
3388
3382
  states: {
3389
- error: (_d = (_c = props.demoData) === null || _c === void 0 ? void 0 : _c.states) === null || _d === void 0 ? void 0 : _d.error,
3383
+ error: false,
3390
3384
  status: states.status,
3391
- loading: props.demoData.states.loading,
3392
- veriffLoading: props.demoData.states.veriffLoading,
3385
+ loading: false,
3386
+ veriffLoading: false,
3393
3387
  },
3394
3388
  data: { type: "SquatchAdmin" },
3395
3389
  text: props.getTextProps(),
@@ -1054,7 +1054,7 @@ export class PayoutStatusAlert {
1054
1054
  }; }
1055
1055
  }
1056
1056
  function useDemoPayoutStatusAlert(props) {
1057
- var _a, _b, _c, _d;
1057
+ var _a, _b;
1058
1058
  const states = parseStates(props.stateController);
1059
1059
  const formatted = Object.keys(states).reduce((prev, key) => key === "sqm-payout-status-alert"
1060
1060
  ? { ...prev, ...states[key] }
@@ -1065,17 +1065,11 @@ function useDemoPayoutStatusAlert(props) {
1065
1065
  console.log("the value of states is ", states);
1066
1066
  console.log("the value of formatted states is ", formatted);
1067
1067
  return deepmerge({
1068
- // states: {
1069
- // error: props.demoData.states.error || false,
1070
- // status: states.status,
1071
- // loading: props.demoData.states.loading || false,
1072
- // veriffLoading: props.demoData.states.veriffLoading || false,
1073
- // },
1074
1068
  states: {
1075
- error: (_d = (_c = props.demoData) === null || _c === void 0 ? void 0 : _c.states) === null || _d === void 0 ? void 0 : _d.error,
1069
+ error: false,
1076
1070
  status: states.status,
1077
- loading: props.demoData.states.loading,
1078
- veriffLoading: props.demoData.states.veriffLoading,
1071
+ loading: false,
1072
+ veriffLoading: false,
1079
1073
  },
1080
1074
  data: { type: "SquatchAdmin" },
1081
1075
  text: props.getTextProps(),
@@ -3364,7 +3364,7 @@ const PayoutStatusAlert = class {
3364
3364
  }
3365
3365
  };
3366
3366
  function useDemoPayoutStatusAlert(props) {
3367
- var _a, _b, _c, _d;
3367
+ var _a, _b;
3368
3368
  const states = parseStates(props.stateController);
3369
3369
  const formatted = Object.keys(states).reduce((prev, key) => key === "sqm-payout-status-alert"
3370
3370
  ? { ...prev, ...states[key] }
@@ -3375,17 +3375,11 @@ function useDemoPayoutStatusAlert(props) {
3375
3375
  console.log("the value of states is ", states);
3376
3376
  console.log("the value of formatted states is ", formatted);
3377
3377
  return cjs({
3378
- // states: {
3379
- // error: props.demoData.states.error || false,
3380
- // status: states.status,
3381
- // loading: props.demoData.states.loading || false,
3382
- // veriffLoading: props.demoData.states.veriffLoading || false,
3383
- // },
3384
3378
  states: {
3385
- error: (_d = (_c = props.demoData) === null || _c === void 0 ? void 0 : _c.states) === null || _d === void 0 ? void 0 : _d.error,
3379
+ error: false,
3386
3380
  status: states.status,
3387
- loading: props.demoData.states.loading,
3388
- veriffLoading: props.demoData.states.veriffLoading,
3381
+ loading: false,
3382
+ veriffLoading: false,
3389
3383
  },
3390
3384
  data: { type: "SquatchAdmin" },
3391
3385
  text: props.getTextProps(),