File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ import { useTranslation } from "react-i18next";
16
16
import ModalUi from "../primitives/ModalUi" ;
17
17
import QuotaCard from "../primitives/QuotaCard" ;
18
18
19
- const Header = ( { showSidebar } ) => {
19
+ const Header = ( { showSidebar, setIsMenu } ) => {
20
20
const { t, i18n } = useTranslation ( ) ;
21
21
const navigate = useNavigate ( ) ;
22
22
const { width } = useWindowSize ( ) ;
@@ -40,7 +40,7 @@ const Header = ({ showSidebar }) => {
40
40
const toggleDropdown = ( ) => {
41
41
setIsOpen ( ! isOpen ) ;
42
42
if ( width <= 768 ) {
43
- showSidebar ( ) ;
43
+ setIsMenu ( false ) ;
44
44
}
45
45
} ;
46
46
useEffect ( ( ) => {
Original file line number Diff line number Diff line change @@ -255,7 +255,9 @@ const HomeLayout = () => {
255
255
return (
256
256
< div >
257
257
< div className = "sticky top-0 z-[501]" >
258
- { ! isLoader && < Header showSidebar = { showSidebar } /> }
258
+ { ! isLoader && (
259
+ < Header showSidebar = { showSidebar } setIsMenu = { setIsOpen } />
260
+ ) }
259
261
</ div >
260
262
{ isUserValid ? (
261
263
< >
You can’t perform that action at this time.
0 commit comments