@selfcommunity/react-ui 0.8.0-alpha.30 → 0.8.0-alpha.31

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.
@@ -48,12 +48,12 @@ function NavigationMenuDrawer(inProps) {
48
48
  // Subscriber for pubsub callback
49
49
  const subscriber = (0, react_1.useCallback)((msg, data) => {
50
50
  if (msg === `${PubSub_1.SCTopicType.LAYOUT}.${PubSub_1.SCLayoutEventType.TOGGLE_DRAWER}`) {
51
- setIsDrawerOpen(!open);
51
+ setIsDrawerOpen(!isDrawerOpen);
52
52
  }
53
53
  else if (msg === `${PubSub_1.SCTopicType.LAYOUT}.${PubSub_1.SCLayoutEventType.SET_DRAWER}`) {
54
54
  setIsDrawerOpen(data.open);
55
55
  }
56
- }, [open]);
56
+ }, [isDrawerOpen]);
57
57
  /**
58
58
  * When a ws notification arrives, update data
59
59
  */
@@ -46,12 +46,12 @@ export default function NavigationMenuDrawer(inProps) {
46
46
  // Subscriber for pubsub callback
47
47
  const subscriber = useCallback((msg, data) => {
48
48
  if (msg === `${SCTopicType.LAYOUT}.${SCLayoutEventType.TOGGLE_DRAWER}`) {
49
- setIsDrawerOpen(!open);
49
+ setIsDrawerOpen(!isDrawerOpen);
50
50
  }
51
51
  else if (msg === `${SCTopicType.LAYOUT}.${SCLayoutEventType.SET_DRAWER}`) {
52
52
  setIsDrawerOpen(data.open);
53
53
  }
54
- }, [open]);
54
+ }, [isDrawerOpen]);
55
55
  /**
56
56
  * When a ws notification arrives, update data
57
57
  */