l-min-components 1.0.785 → 1.0.791

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "l-min-components",
3
- "version": "1.0.785",
3
+ "version": "1.0.791",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "src/assets",
@@ -393,7 +393,7 @@ console.log("defaultLang", defaultLang)
393
393
  <a
394
394
  onClick={() => {
395
395
  window.location.href =
396
- "https://559staging.learngual.com/settings/";
396
+ "https://559staging.learngual.com/settings/account";
397
397
  }}
398
398
  className={
399
399
  window.location.pathname.includes("settings") ? "active" : ""
@@ -44,8 +44,11 @@ const SideMenu = ({
44
44
  // Normal route filter
45
45
  const [filteredRoutes, setFilteredRoutes] = useState();
46
46
 
47
- const isPersonal = generalData?.selectedAccount?.type === "PERSONAL" && window.location.hostname.includes("staging")
48
-
47
+ // When personal and on staging
48
+ const isPersonal =
49
+ generalData?.selectedAccount?.type === "PERSONAL" &&
50
+ window.location.hostname.includes("staging");
51
+
49
52
  useEffect(() => {
50
53
  if (userType) {
51
54
  setFilteredRoutes(
@@ -303,14 +306,10 @@ const SideMenu = ({
303
306
  )}
304
307
  minimal={isOpen}
305
308
  >
306
- {!isPersonal && (
307
- <>
308
- <IconContainer active={active}>
309
- {active ? iconActive : icon}
310
- </IconContainer>
311
- <TextContainer minimal={isOpen}>{text}</TextContainer>
312
- </>
313
- )}
309
+ <IconContainer active={active}>
310
+ {active ? iconActive : icon}
311
+ </IconContainer>
312
+ <TextContainer minimal={isOpen}>{text}</TextContainer>
314
313
 
315
314
  {notifications && (
316
315
  <NotificationCount minimal={isOpen}>
@@ -328,10 +327,13 @@ const SideMenu = ({
328
327
  >
329
328
  <UserCard user={user} isOpen={isOpen} />
330
329
 
331
- <NavigationContainer>
332
- {routeFilter && routeFilter?.map(renderNavigationItem)}
333
- </NavigationContainer>
334
-
330
+ {!isPersonal && (
331
+ <>
332
+ <NavigationContainer>
333
+ {routeFilter && routeFilter?.map(renderNavigationItem)}
334
+ </NavigationContainer>
335
+ </>
336
+ )}
335
337
  <LogoutButtonContainer onClick={onLogout}>
336
338
  <IconContainer>{/* <CiLogout /> */}</IconContainer>
337
339
  {/* <TextContainer minimal={isOpen}>Log out</TextContainer> */}