sixseconds-modules 1.5.4 → 1.5.6

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.
@@ -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
@@ -84,7 +84,6 @@ const SubHeaderStyled = material.styled(material.AppBar)(() => ({
84
84
  width: "100vw",
85
85
  fontFamily: "Inter, sans-serif",
86
86
  position: "fixed",
87
- boxShadow: " -6px 2px 7px 1px #EDEDED",
88
87
  zIndex: "99",
89
88
  // left: "255px",
90
89
  right: "0px",
@@ -179,15 +178,6 @@ const ALERT_MESSAGES = Object.freeze({
179
178
  networkError: "Please check your internet connection!",
180
179
  timeOutError: "Your connection taking too long to get data!"
181
180
  });
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
181
  const NOTIFICATIONS_TYPES = Object.freeze({
192
182
  project: "Project",
193
183
  credit: "Credit",
@@ -262,7 +252,7 @@ const getIcons = (val, defaultIcon) => {
262
252
  }
263
253
  };
264
254
  const handleRedirection = (type, source) => {
265
- if (source === APP_ACCESS.tools) {
255
+ if (source === APP_NAMES.tools) {
266
256
  switch (type) {
267
257
  case NOTIFICATIONS_TYPES.project:
268
258
  window.open(TOOLS_ROUTES.projectList);
@@ -5371,7 +5361,7 @@ const Header = ({
5371
5361
  logoutHandler();
5372
5362
  };
5373
5363
  const getDropDownMenuData = async () => {
5374
- const res = await getDropDownMenuAPI({ source: userData.appName, language_id: selectedInterFaceLang.id });
5364
+ const res = await getDropDownMenuAPI({ source: APP_NAMES.events, language_id: selectedInterFaceLang.id });
5375
5365
  if (res.remote === "success") {
5376
5366
  setState((p) => ({ ...p, menuData: res.data }));
5377
5367
  }
@@ -5380,7 +5370,7 @@ const Header = ({
5380
5370
  if (isMenu) {
5381
5371
  getDropDownMenuData();
5382
5372
  }
5383
- }, [isMenu]);
5373
+ }, [isMenu, selectedInterFaceLang?.id]);
5384
5374
  return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
5385
5375
  /* @__PURE__ */ jsxRuntime.jsx(SubHeaderStyled, { sx, children: /* @__PURE__ */ jsxRuntime.jsxs(material.Container, { maxWidth: false, sx: { display: "flex", justifyContent: "space-between", alignItems: "center" }, children: [
5386
5376
  /* @__PURE__ */ jsxRuntime.jsxs(material.Box, { sx: { display: "flex !important", alignItems: "center !important" }, children: [
@@ -5482,7 +5472,7 @@ const Header = ({
5482
5472
  {
5483
5473
  className: "hamburger-icon-btn",
5484
5474
  onClick: () => setState((p) => ({ ...p, toggles: { ...p.toggles, dropDownMenu: !p.toggles.dropDownMenu } })),
5485
- children: /* @__PURE__ */ jsxRuntime.jsx(MenuIcon, { style: { width: "20px", height: "20px" } })
5475
+ children: /* @__PURE__ */ jsxRuntime.jsx(MenuIcon, { style: { width: "1em", height: "1em" } })
5486
5476
  }
5487
5477
  )
5488
5478
  ] })