@saasquatch/mint-components 2.0.2-16 → 2.0.2-18
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.
- package/dist/cjs/sqm-banking-info-form_10.cjs.entry.js +8 -1
- package/dist/collection/components/tax-and-cash/sqm-banking-info-form/useBankingInfoForm.js +1 -0
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/useTaxAndCashDashboard.js +7 -1
- package/dist/esm/sqm-banking-info-form_10.entry.js +8 -1
- package/dist/esm-es5/sqm-banking-info-form_10.entry.js +1 -1
- package/dist/mint-components/mint-components.esm.js +1 -1
- package/dist/mint-components/{p-5aa1abc8.entry.js → p-700052a8.entry.js} +7 -7
- package/dist/mint-components/p-7f188ba3.system.entry.js +1 -0
- package/dist/mint-components/p-967a9040.system.js +1 -1
- package/docs/docs.docx +0 -0
- package/package.json +1 -1
- package/dist/mint-components/p-7fe673c5.system.entry.js +0 -1
|
@@ -903,6 +903,7 @@ function useBankingInfoForm(props) {
|
|
|
903
903
|
const paymentMethodChecked = !hasPayPal
|
|
904
904
|
? "toBankAccount"
|
|
905
905
|
: _paymentMethodChecked;
|
|
906
|
+
console.log({ context });
|
|
906
907
|
domContextHooks_module.useEffect(() => {
|
|
907
908
|
// reset redirect hash
|
|
908
909
|
if (window.location.hash !== "#4")
|
|
@@ -4395,8 +4396,14 @@ const useTaxAndCashDashboard = (props) => {
|
|
|
4395
4396
|
domContextHooks_module.useEffect(() => {
|
|
4396
4397
|
// Clear override context once on submitted
|
|
4397
4398
|
setContext({});
|
|
4398
|
-
if (window.location.hash)
|
|
4399
|
+
if (window.location.hash) {
|
|
4399
4400
|
setStep(`/${window.location.hash.replace("#", "")}`);
|
|
4401
|
+
setContext({
|
|
4402
|
+
overrideNextStep: "/dashboard",
|
|
4403
|
+
overrideBackStep: "/dashboard",
|
|
4404
|
+
hideSteps: true,
|
|
4405
|
+
});
|
|
4406
|
+
}
|
|
4400
4407
|
}, []);
|
|
4401
4408
|
const { data, loading, errors: userError, refetch, } = index_module.$n(usePayoutStatus.USER_QUERY_NAMESPACE);
|
|
4402
4409
|
const publisher = (_b = (_a = data === null || data === void 0 ? void 0 : data.user) === null || _a === void 0 ? void 0 : _a.impactConnection) === null || _b === void 0 ? void 0 : _b.publisher;
|
|
@@ -125,6 +125,7 @@ export function useBankingInfoForm(props) {
|
|
|
125
125
|
const paymentMethodChecked = !hasPayPal
|
|
126
126
|
? "toBankAccount"
|
|
127
127
|
: _paymentMethodChecked;
|
|
128
|
+
console.log({ context });
|
|
128
129
|
useEffect(() => {
|
|
129
130
|
// reset redirect hash
|
|
130
131
|
if (window.location.hash !== "#4")
|
package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/useTaxAndCashDashboard.js
CHANGED
|
@@ -60,8 +60,14 @@ export const useTaxAndCashDashboard = (props) => {
|
|
|
60
60
|
useEffect(() => {
|
|
61
61
|
// Clear override context once on submitted
|
|
62
62
|
setContext({});
|
|
63
|
-
if (window.location.hash)
|
|
63
|
+
if (window.location.hash) {
|
|
64
64
|
setStep(`/${window.location.hash.replace("#", "")}`);
|
|
65
|
+
setContext({
|
|
66
|
+
overrideNextStep: "/dashboard",
|
|
67
|
+
overrideBackStep: "/dashboard",
|
|
68
|
+
hideSteps: true,
|
|
69
|
+
});
|
|
70
|
+
}
|
|
65
71
|
}, []);
|
|
66
72
|
const { data, loading, errors: userError, refetch, } = useParentQueryValue(USER_QUERY_NAMESPACE);
|
|
67
73
|
const publisher = (_b = (_a = data === null || data === void 0 ? void 0 : data.user) === null || _a === void 0 ? void 0 : _a.impactConnection) === null || _b === void 0 ? void 0 : _b.publisher;
|
|
@@ -899,6 +899,7 @@ function useBankingInfoForm(props) {
|
|
|
899
899
|
const paymentMethodChecked = !hasPayPal
|
|
900
900
|
? "toBankAccount"
|
|
901
901
|
: _paymentMethodChecked;
|
|
902
|
+
console.log({ context });
|
|
902
903
|
useEffect(() => {
|
|
903
904
|
// reset redirect hash
|
|
904
905
|
if (window.location.hash !== "#4")
|
|
@@ -4391,8 +4392,14 @@ const useTaxAndCashDashboard = (props) => {
|
|
|
4391
4392
|
useEffect(() => {
|
|
4392
4393
|
// Clear override context once on submitted
|
|
4393
4394
|
setContext({});
|
|
4394
|
-
if (window.location.hash)
|
|
4395
|
+
if (window.location.hash) {
|
|
4395
4396
|
setStep(`/${window.location.hash.replace("#", "")}`);
|
|
4397
|
+
setContext({
|
|
4398
|
+
overrideNextStep: "/dashboard",
|
|
4399
|
+
overrideBackStep: "/dashboard",
|
|
4400
|
+
hideSteps: true,
|
|
4401
|
+
});
|
|
4402
|
+
}
|
|
4396
4403
|
}, []);
|
|
4397
4404
|
const { data, loading, errors: userError, refetch, } = $n(USER_QUERY_NAMESPACE);
|
|
4398
4405
|
const publisher = (_b = (_a = data === null || data === void 0 ? void 0 : data.user) === null || _a === void 0 ? void 0 : _a.impactConnection) === null || _b === void 0 ? void 0 : _b.publisher;
|