sixseconds-modules 1.5.4 → 1.5.5
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/constants/common.d.ts +0 -9
- package/dist/index.cjs.js +3 -12
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +3 -12
- package/dist/index.es.js.map +1 -1
- package/package.json +1 -1
|
@@ -59,15 +59,6 @@ export declare const RTK_ERROR_CODES: Readonly<{
|
|
|
59
59
|
timeOutError: "TIMEOUT_ERROR";
|
|
60
60
|
customError: "CUSTOM_ERROR";
|
|
61
61
|
}>;
|
|
62
|
-
export declare const APP_ACCESS: Readonly<{
|
|
63
|
-
events: "Events";
|
|
64
|
-
tools: "Tools";
|
|
65
|
-
certHome: "Cert Home";
|
|
66
|
-
cards: "Cards";
|
|
67
|
-
ssoAdmin: "SSO Admin";
|
|
68
|
-
cardsHome: "Cards Home";
|
|
69
|
-
cardsAdmin: "Cards Admin";
|
|
70
|
-
}>;
|
|
71
62
|
export declare const NOTIFICATIONS_TYPES: Readonly<{
|
|
72
63
|
project: "Project";
|
|
73
64
|
credit: "Credit";
|
package/dist/index.cjs.js
CHANGED
|
@@ -179,15 +179,6 @@ const ALERT_MESSAGES = Object.freeze({
|
|
|
179
179
|
networkError: "Please check your internet connection!",
|
|
180
180
|
timeOutError: "Your connection taking too long to get data!"
|
|
181
181
|
});
|
|
182
|
-
const APP_ACCESS = Object.freeze({
|
|
183
|
-
events: "Events",
|
|
184
|
-
tools: "Tools",
|
|
185
|
-
certHome: "Cert Home",
|
|
186
|
-
cards: "Cards",
|
|
187
|
-
ssoAdmin: "SSO Admin",
|
|
188
|
-
cardsHome: "Cards Home",
|
|
189
|
-
cardsAdmin: "Cards Admin"
|
|
190
|
-
});
|
|
191
182
|
const NOTIFICATIONS_TYPES = Object.freeze({
|
|
192
183
|
project: "Project",
|
|
193
184
|
credit: "Credit",
|
|
@@ -262,7 +253,7 @@ const getIcons = (val, defaultIcon) => {
|
|
|
262
253
|
}
|
|
263
254
|
};
|
|
264
255
|
const handleRedirection = (type, source) => {
|
|
265
|
-
if (source ===
|
|
256
|
+
if (source === APP_NAMES.tools) {
|
|
266
257
|
switch (type) {
|
|
267
258
|
case NOTIFICATIONS_TYPES.project:
|
|
268
259
|
window.open(TOOLS_ROUTES.projectList);
|
|
@@ -5371,7 +5362,7 @@ const Header = ({
|
|
|
5371
5362
|
logoutHandler();
|
|
5372
5363
|
};
|
|
5373
5364
|
const getDropDownMenuData = async () => {
|
|
5374
|
-
const res = await getDropDownMenuAPI({ source:
|
|
5365
|
+
const res = await getDropDownMenuAPI({ source: APP_NAMES.events, language_id: selectedInterFaceLang.id });
|
|
5375
5366
|
if (res.remote === "success") {
|
|
5376
5367
|
setState((p) => ({ ...p, menuData: res.data }));
|
|
5377
5368
|
}
|
|
@@ -5380,7 +5371,7 @@ const Header = ({
|
|
|
5380
5371
|
if (isMenu) {
|
|
5381
5372
|
getDropDownMenuData();
|
|
5382
5373
|
}
|
|
5383
|
-
}, [isMenu]);
|
|
5374
|
+
}, [isMenu, selectedInterFaceLang?.id]);
|
|
5384
5375
|
return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
5385
5376
|
/* @__PURE__ */ jsxRuntime.jsx(SubHeaderStyled, { sx, children: /* @__PURE__ */ jsxRuntime.jsxs(material.Container, { maxWidth: false, sx: { display: "flex", justifyContent: "space-between", alignItems: "center" }, children: [
|
|
5386
5377
|
/* @__PURE__ */ jsxRuntime.jsxs(material.Box, { sx: { display: "flex !important", alignItems: "center !important" }, children: [
|