l-min-components 1.0.1082 → 1.0.1084

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.1082",
3
+ "version": "1.0.1084",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "src/assets",
@@ -470,11 +470,7 @@ const HeaderComponent = (props) => {
470
470
  e.stopPropagation();
471
471
  } else {
472
472
  window.location.hostname.includes("coming")
473
- ? (window.location.href = `https://www.learngual.com/${
474
- selectedAccount?.type
475
- ? selectedAccount?.type?.toLowerCase()
476
- : userAccountsDetail?.data?.[0]?.type?.toLowerCase()
477
- }/notifications/`)
473
+ ? (window.location.href = `https://www.learngual.com/auth/sign-in`)
478
474
  : (window.location.href = `/${
479
475
  selectedAccount?.type
480
476
  ? selectedAccount?.type?.toLowerCase()
@@ -525,8 +521,8 @@ const HeaderComponent = (props) => {
525
521
  setIsOpen();
526
522
  }}
527
523
  >
528
- {!isDeveloper &&
529
- window.location.hostname.includes("coming") && ( // when developer and on staging, don't show
524
+ {!isDeveloper ||
525
+ (window.location.hostname.includes("coming") && ( // when developer and on staging, don't show
530
526
  <SearchInputGroup>
531
527
  <SearchIcon />
532
528
  <SearchInput
@@ -546,7 +542,7 @@ const HeaderComponent = (props) => {
546
542
  </div>
547
543
  )}
548
544
  </SearchInputGroup>
549
- )}
545
+ ))}
550
546
 
551
547
  <div className="language_dropdown" onClick={(e) => e.stopPropagation()}>
552
548
  <div
@@ -50,9 +50,7 @@ const SideBar = ({ routes, findText }) => {
50
50
  <NavLinkStyled
51
51
  activeClassName="active"
52
52
  to={route?.newTab ? "" : route?.path}
53
- onClick={() =>
54
- window.open(route.path, route?.newTab ? "_blank" : "")
55
- }
53
+ onClick={() => window.open(route.path)}
56
54
  className={
57
55
  route?.label !== "Learning"
58
56
  ? window.location.pathname.includes(