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 +1 -1
- package/src/components/header/index.jsx +36 -26
package/package.json
CHANGED
|
@@ -443,7 +443,10 @@ const HeaderComponent = (props) => {
|
|
|
443
443
|
<li>
|
|
444
444
|
<a
|
|
445
445
|
onClick={() => {
|
|
446
|
-
window.location.
|
|
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.
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
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 &&
|
|
520
|
-
|
|
521
|
-
<
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
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
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
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
|