l-min-components 1.7.1469 → 1.7.1471
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
|
@@ -483,7 +483,11 @@ const AppMainLayout = ({ children }) => {
|
|
|
483
483
|
)}
|
|
484
484
|
</LeftLayout>
|
|
485
485
|
{
|
|
486
|
-
<CenterLayout
|
|
486
|
+
<CenterLayout
|
|
487
|
+
isOpen={isOpen}
|
|
488
|
+
style={centerLayoutStyle}
|
|
489
|
+
href={window.location.href}
|
|
490
|
+
>
|
|
487
491
|
{activeAccountType === "instructor" &&
|
|
488
492
|
!accountIsPendingDeletion &&
|
|
489
493
|
affiliateList?.length > 0 &&
|
|
@@ -71,7 +71,8 @@ export const CenterLayout = styled.div`
|
|
|
71
71
|
@media screen and (max-width: 1366px) {
|
|
72
72
|
margin: ${({ isOpen }) =>
|
|
73
73
|
isOpen ? "0px 200px 0 276px" : "0px 202px 0 145px"};
|
|
74
|
-
max-width: ${({ isOpen }) =>
|
|
74
|
+
max-width: ${({ isOpen, href }) =>
|
|
75
|
+
href.includes("help") ? "100%" : isOpen ? "750px" : "900px"};
|
|
75
76
|
}
|
|
76
77
|
.instructor_expired {
|
|
77
78
|
h1 {
|
|
@@ -301,6 +301,24 @@ const HeaderComponent = (props) => {
|
|
|
301
301
|
: "api"
|
|
302
302
|
}.learngual.com/notify/v1/ws/connect/`;
|
|
303
303
|
|
|
304
|
+
const helpUrl = `${
|
|
305
|
+
window.location.hostname.includes("localhost") ||
|
|
306
|
+
window.location.hostname.includes("staging")
|
|
307
|
+
? "staging-help.learngual.com"
|
|
308
|
+
: "help.learngual.com"
|
|
309
|
+
}`;
|
|
310
|
+
|
|
311
|
+
const base = `${
|
|
312
|
+
window.location.hostname.includes("localhost") ||
|
|
313
|
+
window.location.hostname.includes("staging")
|
|
314
|
+
? `559staging.learngual.${
|
|
315
|
+
window.location.hostname.includes(".ca") ? "ca" : "com"
|
|
316
|
+
}`
|
|
317
|
+
: `www.learngual.${
|
|
318
|
+
window.location.hostname.includes(".ca") ? "ca" : "com"
|
|
319
|
+
}`
|
|
320
|
+
}`;
|
|
321
|
+
|
|
304
322
|
const token = getCookie("access");
|
|
305
323
|
const defaultAcctId = getCookie("defaultAccountID");
|
|
306
324
|
const account_id = generalData?.defaultAccount?.id || defaultAcctId;
|
|
@@ -401,10 +419,7 @@ const HeaderComponent = (props) => {
|
|
|
401
419
|
<li>
|
|
402
420
|
<a
|
|
403
421
|
onClick={() => {
|
|
404
|
-
window.location.
|
|
405
|
-
? (window.location.href =
|
|
406
|
-
"https://www.learngual.com/settings/account")
|
|
407
|
-
: (window.location.href = "/settings/account");
|
|
422
|
+
window.location.href = `${base}/settings/account`;
|
|
408
423
|
}}
|
|
409
424
|
className={
|
|
410
425
|
window.location.pathname.includes("settings") ? "active" : ""
|
|
@@ -423,7 +438,7 @@ const HeaderComponent = (props) => {
|
|
|
423
438
|
} else {
|
|
424
439
|
window.location.hostname.includes("coming")
|
|
425
440
|
? (window.location.href = `https://www.learngual.com/auth/sign-in`)
|
|
426
|
-
: (window.location.href =
|
|
441
|
+
: (window.location.href = `${base}/${
|
|
427
442
|
props?.selectedAccount?.type
|
|
428
443
|
? props?.selectedAccount?.type?.toLowerCase()
|
|
429
444
|
: userAccountsDetail?.data?.[0]?.type?.toLowerCase()
|
|
@@ -448,10 +463,10 @@ const HeaderComponent = (props) => {
|
|
|
448
463
|
</a>
|
|
449
464
|
</li>
|
|
450
465
|
</>
|
|
451
|
-
|
|
466
|
+
<li style={{ marginLeft: "20%", cursor: "pointer" }}>
|
|
452
467
|
<a
|
|
453
468
|
onClick={() => {
|
|
454
|
-
window.location.href =
|
|
469
|
+
window.location.href = helpUrl;
|
|
455
470
|
}}
|
|
456
471
|
className={
|
|
457
472
|
window.location.pathname.includes("help-center") ? "active" : ""
|
|
@@ -459,7 +474,7 @@ const HeaderComponent = (props) => {
|
|
|
459
474
|
>
|
|
460
475
|
<QuestionMark /> {props?.findText("Help")}
|
|
461
476
|
</a>
|
|
462
|
-
</li>
|
|
477
|
+
</li>
|
|
463
478
|
</Nav>
|
|
464
479
|
{/*
|
|
465
480
|
<Help>
|