l-min-components 1.0.1081 → 1.0.1082

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.1081",
3
+ "version": "1.0.1082",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "src/assets",
@@ -443,7 +443,10 @@ const HeaderComponent = (props) => {
443
443
  <li>
444
444
  <a
445
445
  onClick={() => {
446
- window.location.href = "/settings/account";
446
+ window.location.hostname.includes("coming")
447
+ ? (window.location.href =
448
+ "https://www.learngual.com/settings/account")
449
+ : (window.location.href = "/settings/account");
447
450
  }}
448
451
  className={
449
452
  window.location.pathname.includes("settings") ? "active" : ""
@@ -466,11 +469,17 @@ const HeaderComponent = (props) => {
466
469
  e.preventDefault();
467
470
  e.stopPropagation();
468
471
  } else {
469
- window.location.href = `/${
470
- selectedAccount?.type
471
- ? selectedAccount?.type?.toLowerCase()
472
- : userAccountsDetail?.data?.[0]?.type?.toLowerCase()
473
- }/notifications/`;
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/`)
478
+ : (window.location.href = `/${
479
+ selectedAccount?.type
480
+ ? selectedAccount?.type?.toLowerCase()
481
+ : userAccountsDetail?.data?.[0]?.type?.toLowerCase()
482
+ }/notifications/`);
474
483
  }
475
484
  }}
476
485
  className={
@@ -516,27 +525,28 @@ const HeaderComponent = (props) => {
516
525
  setIsOpen();
517
526
  }}
518
527
  >
519
- {!isDeveloper && ( // when developer and on staging, don't show
520
- <SearchInputGroup>
521
- <SearchIcon />
522
- <SearchInput
523
- type={props.inputType}
524
- value={props.value}
525
- id={props.inputId}
526
- placeholder={props.placeholder}
527
- style={props.inputStyles}
528
- onChange={props.onChange}
529
- onFocus={() => setSearchResultOpen(true)}
530
- onBlur={() => setSearchResultOpen(false)}
531
- />
528
+ {!isDeveloper &&
529
+ window.location.hostname.includes("coming") && ( // when developer and on staging, don't show
530
+ <SearchInputGroup>
531
+ <SearchIcon />
532
+ <SearchInput
533
+ type={props.inputType}
534
+ value={props.value}
535
+ id={props.inputId}
536
+ placeholder={props.placeholder}
537
+ style={props.inputStyles}
538
+ onChange={props.onChange}
539
+ onFocus={() => setSearchResultOpen(true)}
540
+ onBlur={() => setSearchResultOpen(false)}
541
+ />
532
542
 
533
- {searchResultOpen && (
534
- <div className="search-result-wrapper">
535
- <p>{/* Website <span>UIUX </span> Design */}</p>
536
- </div>
537
- )}
538
- </SearchInputGroup>
539
- )}
543
+ {searchResultOpen && (
544
+ <div className="search-result-wrapper">
545
+ <p>{/* Website <span>UIUX </span> Design */}</p>
546
+ </div>
547
+ )}
548
+ </SearchInputGroup>
549
+ )}
540
550
 
541
551
  <div className="language_dropdown" onClick={(e) => e.stopPropagation()}>
542
552
  <div