jett.admin.npmpackage 2.0.16 → 2.0.18

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/index.js CHANGED
@@ -499,7 +499,7 @@ var navItemsConstant = [
499
499
  {
500
500
  label: "Trips",
501
501
  onClick: () => {
502
- window.location.href = "/trips/";
502
+ window.location.href = "/corporate/trips/";
503
503
  }
504
504
  },
505
505
  {
@@ -1527,7 +1527,7 @@ var AppSideBar = ({
1527
1527
  if (onLogout) {
1528
1528
  onLogout();
1529
1529
  } else {
1530
- window.dispatchEvent(new Event("logout"));
1530
+ window.location.href = `${window.location.origin}/login/logout`;
1531
1531
  }
1532
1532
  }
1533
1533
  }
package/dist/index.mjs CHANGED
@@ -466,7 +466,7 @@ var navItemsConstant = [
466
466
  {
467
467
  label: "Trips",
468
468
  onClick: () => {
469
- window.location.href = "/trips/";
469
+ window.location.href = "/corporate/trips/";
470
470
  }
471
471
  },
472
472
  {
@@ -1494,7 +1494,7 @@ var AppSideBar = ({
1494
1494
  if (onLogout) {
1495
1495
  onLogout();
1496
1496
  } else {
1497
- window.dispatchEvent(new Event("logout"));
1497
+ window.location.href = `${window.location.origin}/login/logout`;
1498
1498
  }
1499
1499
  }
1500
1500
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jett.admin.npmpackage",
3
- "version": "2.0.16",
3
+ "version": "2.0.18",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/index.mjs",
6
6
  "exports": {