datastake-daf 0.6.508 → 0.6.509

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.
@@ -5241,16 +5241,10 @@ const Sidenav = ({
5241
5241
  const checkOnClick = ({
5242
5242
  event
5243
5243
  }) => {
5244
- console.log("Click 1");
5245
- if (changeNotificationState && typeof changeNotificationState === 'function') {
5246
- console.log("Change notification state", changeNotificationState);
5247
- changeNotificationState({
5248
- onYes: event
5249
- });
5250
- } else if (typeof event === 'function') {
5251
- console.log("Event", event);
5252
- event();
5253
- }
5244
+ console.log("Check on click", event);
5245
+ changeNotificationState({
5246
+ onYes: event
5247
+ });
5254
5248
  };
5255
5249
  const {
5256
5250
  hoverContent,
@@ -5317,12 +5311,11 @@ const Sidenav = ({
5317
5311
  children: [renderModule({
5318
5312
  module: userModule,
5319
5313
  isCollapsed,
5320
- onClick: () => {
5321
- const redirectPath = getRedirectLink(`/app`);
5322
- checkOnClick({
5323
- event: () => goTo(redirectPath)
5324
- });
5325
- },
5314
+ onClick: () => checkOnClick({
5315
+ event: () => {
5316
+ goTo(getRedirectLink(`/app`));
5317
+ }
5318
+ }),
5326
5319
  mod,
5327
5320
  user,
5328
5321
  userHelpers
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "datastake-daf",
3
- "version": "0.6.508",
3
+ "version": "0.6.509",
4
4
  "dependencies": {
5
5
  "@ant-design/icons": "^5.2.5",
6
6
  "@antv/g2": "^5.1.1",
@@ -163,15 +163,9 @@ const Sidenav = ({
163
163
  };
164
164
 
165
165
  const checkOnClick = ({ event }) => {
166
- console.log("Click 1")
167
- if (changeNotificationState && typeof changeNotificationState === 'function') {
168
- console.log("Change notification state", changeNotificationState);
169
- changeNotificationState({ onYes: event });
170
- } else if (typeof event === 'function') {
171
- console.log("Event", event);
172
- event();
173
- }
174
- };
166
+ console.log("Check on click", event);
167
+ changeNotificationState({ onYes: event });
168
+ }
175
169
 
176
170
  const { hoverContent, hoverContentSecond } = useMenu({
177
171
  checkOnClick,
@@ -247,12 +241,11 @@ const Sidenav = ({
247
241
  {renderModule({
248
242
  module: userModule,
249
243
  isCollapsed,
250
- onClick: () => {
251
- const redirectPath = getRedirectLink(`/app`);
252
- checkOnClick({
253
- event: () => goTo(redirectPath)
254
- });
255
- },
244
+ onClick: () => checkOnClick({
245
+ event: () => {
246
+ goTo(getRedirectLink(`/app`));
247
+ }
248
+ }),
256
249
  mod,
257
250
  user,
258
251
  userHelpers