@lendi/navbar 7.44.0 → 7.44.2
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/dist/navbar.cjs.dev.js +7 -2
- package/dist/navbar.cjs.prod.js +2 -2
- package/dist/navbar.esm.js +7 -2
- package/package.json +1 -1
package/dist/navbar.cjs.dev.js
CHANGED
|
@@ -461,8 +461,13 @@ var DropdownMenu = () => {
|
|
|
461
461
|
} = useDropdownMenu();
|
|
462
462
|
var {
|
|
463
463
|
sendFeedback,
|
|
464
|
-
referAFriend
|
|
464
|
+
referAFriend,
|
|
465
|
+
gpCustomerDashboardWithProperties
|
|
465
466
|
} = launchdarkly.useFlags();
|
|
467
|
+
|
|
468
|
+
// Determine dashboard path based on feature flag (Aussie only)
|
|
469
|
+
var isAussie = brand === lalaUtils.Brand.Aussie;
|
|
470
|
+
var dashboardPath = isAussie && gpCustomerDashboardWithProperties ? '/my-profile/' : DASHBOARD_V2_PATH;
|
|
466
471
|
return /*#__PURE__*/jsxRuntime.jsxs(LogoutWrapper, {
|
|
467
472
|
children: [/*#__PURE__*/jsxRuntime.jsx(MyAccountTitle, {
|
|
468
473
|
children: "My account"
|
|
@@ -491,7 +496,7 @@ var DropdownMenu = () => {
|
|
|
491
496
|
};
|
|
492
497
|
analytics(event);
|
|
493
498
|
},
|
|
494
|
-
href: "".concat(path).concat(
|
|
499
|
+
href: "".concat(path).concat(dashboardPath),
|
|
495
500
|
"aria-label": LABEL_DASHBOARD,
|
|
496
501
|
children: LABEL_DASHBOARD
|
|
497
502
|
}), !isDomain && /*#__PURE__*/jsxRuntime.jsxs(LinkWrapper$1, {
|
package/dist/navbar.cjs.prod.js
CHANGED
|
@@ -248,7 +248,7 @@ var _templateObject$d, _templateObject$c, _templateObject$b, _templateObject$a,
|
|
|
248
248
|
forceDisplay: !0
|
|
249
249
|
});
|
|
250
250
|
}, DropdownMenu = () => {
|
|
251
|
-
var {brand: brand} = lalaReact.useSession(), isDomain = lalaUtils.getBrandFromHostname() === lalaUtils.Brand.Domain, isLendi = brand === lalaUtils.Brand.Lendi, isSVA = checkSVA(), path = isDomain ? PATH_DOMAIN : PATH_LENDI, {hideDashboardItem: hideDashboardItem, hideManageApplicationsItem: hideManageApplicationsItem, onLogout: onLogout} = useDropdownMenu(), {sendFeedback: sendFeedback, referAFriend: referAFriend} = launchdarkly.useFlags();
|
|
251
|
+
var {brand: brand} = lalaReact.useSession(), isDomain = lalaUtils.getBrandFromHostname() === lalaUtils.Brand.Domain, isLendi = brand === lalaUtils.Brand.Lendi, isSVA = checkSVA(), path = isDomain ? PATH_DOMAIN : PATH_LENDI, {hideDashboardItem: hideDashboardItem, hideManageApplicationsItem: hideManageApplicationsItem, onLogout: onLogout} = useDropdownMenu(), {sendFeedback: sendFeedback, referAFriend: referAFriend, gpCustomerDashboardWithProperties: gpCustomerDashboardWithProperties} = launchdarkly.useFlags(), dashboardPath = brand === lalaUtils.Brand.Aussie && gpCustomerDashboardWithProperties ? "/my-profile/" : DASHBOARD_V2_PATH;
|
|
252
252
|
return jsxRuntime.jsxs(LogoutWrapper, {
|
|
253
253
|
children: [ jsxRuntime.jsx(MyAccountTitle, {
|
|
254
254
|
children: "My account"
|
|
@@ -277,7 +277,7 @@ var _templateObject$d, _templateObject$c, _templateObject$b, _templateObject$a,
|
|
|
277
277
|
};
|
|
278
278
|
analytics(event);
|
|
279
279
|
},
|
|
280
|
-
href: "".concat(path).concat(
|
|
280
|
+
href: "".concat(path).concat(dashboardPath),
|
|
281
281
|
"aria-label": LABEL_DASHBOARD,
|
|
282
282
|
children: LABEL_DASHBOARD
|
|
283
283
|
}), !isDomain && jsxRuntime.jsxs(LinkWrapper$1, {
|
package/dist/navbar.esm.js
CHANGED
|
@@ -427,8 +427,13 @@ var DropdownMenu = () => {
|
|
|
427
427
|
} = useDropdownMenu();
|
|
428
428
|
var {
|
|
429
429
|
sendFeedback,
|
|
430
|
-
referAFriend
|
|
430
|
+
referAFriend,
|
|
431
|
+
gpCustomerDashboardWithProperties
|
|
431
432
|
} = useFlags();
|
|
433
|
+
|
|
434
|
+
// Determine dashboard path based on feature flag (Aussie only)
|
|
435
|
+
var isAussie = brand === Brand.Aussie;
|
|
436
|
+
var dashboardPath = isAussie && gpCustomerDashboardWithProperties ? '/my-profile/' : DASHBOARD_V2_PATH;
|
|
432
437
|
return /*#__PURE__*/jsxs(LogoutWrapper, {
|
|
433
438
|
children: [/*#__PURE__*/jsx(MyAccountTitle, {
|
|
434
439
|
children: "My account"
|
|
@@ -457,7 +462,7 @@ var DropdownMenu = () => {
|
|
|
457
462
|
};
|
|
458
463
|
analytics(event);
|
|
459
464
|
},
|
|
460
|
-
href: "".concat(path).concat(
|
|
465
|
+
href: "".concat(path).concat(dashboardPath),
|
|
461
466
|
"aria-label": LABEL_DASHBOARD,
|
|
462
467
|
children: LABEL_DASHBOARD
|
|
463
468
|
}), !isDomain && /*#__PURE__*/jsxs(LinkWrapper$1, {
|