@@ -4,10 +4,7 @@ import { useDispatch, useSelector } from 'react-redux';
44import { useTranslation } from 'react-i18next' ;
55import { useLocation } from 'react-router' ;
66import { Link } from 'react-router-dom' ;
7- import {
8- NavBarContext ,
9- ParentMenuContext
10- } from '../../../../components/Nav/contexts' ;
7+ import { ParentMenuContext } from '../../../../components/Nav/contexts' ;
118import NavBar from '../../../../components/Nav/NavBar' ;
129import { useMenuProps } from '../../../../components/Nav/NavDropdownMenu' ;
1310import NavMenuItem from '../../../../components/Nav/NavMenuItem' ;
@@ -39,7 +36,6 @@ const Nav = styled(NavBar)`
3936` ;
4037
4138const LogoContainer = styled . div `
42- cursor: pointer;
4339 width: ${ remSize ( 28 ) } ;
4440 aspect-ratio: 1;
4541 margin-left: ${ remSize ( 14 ) } ;
@@ -152,16 +148,6 @@ const Options = styled.div`
152148 }
153149` ;
154150
155- const Logo = ( ) => {
156- const { toggleDropdownOpen } = useContext ( NavBarContext ) ;
157-
158- return (
159- < LogoContainer onClick = { ( ) => toggleDropdownOpen ( 'more' ) } >
160- < AsteriskIcon />
161- </ LogoContainer >
162- ) ;
163- } ;
164-
165151const MobileNav = ( ) => {
166152 const project = useSelector ( ( state ) => state . project ) ;
167153 const user = useSelector ( ( state ) => state . user ) ;
@@ -196,9 +182,12 @@ const MobileNav = () => {
196182
197183 const title = useMemo ( resolveTitle , [ project , pathname ] ) ;
198184
185+ const Logo = AsteriskIcon ;
199186 return (
200187 < Nav >
201- < Logo />
188+ < LogoContainer >
189+ < Logo />
190+ </ LogoContainer >
202191 < Title >
203192 < h1 > { title } </ h1 >
204193 { project ?. owner && title === project . name && (
0 commit comments