@pelcro/react-pelcro-js 4.0.0-alpha.69 → 4.0.0-alpha.70

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.cjs.js CHANGED
@@ -36161,7 +36161,8 @@ const DashboardContent = ({
36161
36161
  const {
36162
36162
  switchView,
36163
36163
  dashboardView,
36164
- switchDashboardView
36164
+ switchDashboardView,
36165
+ logout
36165
36166
  } = usePelcro();
36166
36167
  const {
36167
36168
  t
@@ -36193,6 +36194,12 @@ const DashboardContent = ({
36193
36194
  // };
36194
36195
 
36195
36196
  const setActiveDashboardLink = submenuName => {
36197
+ console.log(submenuName);
36198
+
36199
+ if (submenuName == "logout") {
36200
+ logout();
36201
+ }
36202
+
36196
36203
  dispatch({
36197
36204
  type: SET_ACTIVE_DASHBOARD_LINK,
36198
36205
  payload: submenuName !== null && submenuName !== void 0 ? submenuName : null
package/dist/index.esm.js CHANGED
@@ -36131,7 +36131,8 @@ const DashboardContent = ({
36131
36131
  const {
36132
36132
  switchView,
36133
36133
  dashboardView,
36134
- switchDashboardView
36134
+ switchDashboardView,
36135
+ logout
36135
36136
  } = usePelcro();
36136
36137
  const {
36137
36138
  t
@@ -36163,6 +36164,12 @@ const DashboardContent = ({
36163
36164
  // };
36164
36165
 
36165
36166
  const setActiveDashboardLink = submenuName => {
36167
+ console.log(submenuName);
36168
+
36169
+ if (submenuName == "logout") {
36170
+ logout();
36171
+ }
36172
+
36166
36173
  dispatch({
36167
36174
  type: SET_ACTIVE_DASHBOARD_LINK,
36168
36175
  payload: submenuName !== null && submenuName !== void 0 ? submenuName : null
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@pelcro/react-pelcro-js",
3
3
  "description": "Pelcro's React UI Elements",
4
- "version": "4.0.0-alpha.69",
4
+ "version": "4.0.0-alpha.70",
5
5
  "license": "MIT",
6
6
  "private": false,
7
7
  "main": "dist/index.cjs.js",