henit-chobisa commented on code in PR #3303:
URL: https://github.com/apache/incubator-devlake/pull/3303#discussion_r984840949


##########
config-ui/src/components/Nav.jsx:
##########
@@ -15,73 +15,104 @@
  * limitations under the License.
  *
  */
-import React from 'react'
-import { Alignment, Position, Popover, Navbar, Icon } from '@blueprintjs/core'
+import React, { useContext, useEffect, useState } from 'react'
+import { Position, Popover, Navbar, Icon } from '@blueprintjs/core'
 import '@/styles/nav.scss'
 import { ReactComponent as SlackIcon } from 
'@/images/slack-mark-monochrome-black.svg'
 import { ReactComponent as SlackLogo } from '@/images/slack-rgb.svg'
+import UIContext from '@/store/UIContext'
+import useWindowSize from '@/hooks/useWIndowSize'
 
 const Nav = () => {
+  const uiContext = useContext(UIContext)
+  const [menuClass, setMenuClass] = useState('navbarMenuButton')
+  const size = useWindowSize()
+
+  const toggleSidebarOpen = (open) => {

Review Comment:
   > @henit-chobisa for toggle sidebar func which dep are you providing? The 
entire `uiContext` object? or just `uiContext.changeSidebarVisibility` ?
   
   Initially I gave, `uiContext.changeSidebarVisibility`, everything working 
nicely, but the linter still ask me for the whole uiContext object.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to