@asaleh37/ui-base 25.8.10-7 → 25.8.10-9
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/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/components/common/NoLicenseComponent.tsx +1 -1
- package/src/hooks/useAxios.tsx +13 -0
package/package.json
CHANGED
|
@@ -53,7 +53,7 @@ const NoLicenseComponent: React.FC = () => {
|
|
|
53
53
|
zIndex: 9999,
|
|
54
54
|
}}
|
|
55
55
|
>
|
|
56
|
-
<img src={appInfo.appLogo} />
|
|
56
|
+
<img src={appInfo.appLogo} style={{ height: 200, width: 200 }} />
|
|
57
57
|
<Typography variant="h5">
|
|
58
58
|
{appInfo.appName} - {appInfo.appVersion}
|
|
59
59
|
</Typography>
|
package/src/hooks/useAxios.tsx
CHANGED
|
@@ -57,6 +57,19 @@ const useAxios = () => {
|
|
|
57
57
|
toast.error("your session is now expired, you need to login again", {
|
|
58
58
|
autoClose: false,
|
|
59
59
|
});
|
|
60
|
+
} else if (
|
|
61
|
+
error
|
|
62
|
+
? error.response
|
|
63
|
+
? error.response.status
|
|
64
|
+
? error.response.status === 402
|
|
65
|
+
: false
|
|
66
|
+
: false
|
|
67
|
+
: false
|
|
68
|
+
) {
|
|
69
|
+
dispatch(UserSessionActions.setUnAuthenticated());
|
|
70
|
+
toast.error(
|
|
71
|
+
"Your license is missing or has expired,Please reach out to your vendor for assistance."
|
|
72
|
+
);
|
|
60
73
|
} else if (
|
|
61
74
|
error
|
|
62
75
|
? error.response
|