@@ -4,10 +4,7 @@ import { useDispatch, useSelector } from 'react-redux';
4
4
import { useTranslation } from 'react-i18next' ;
5
5
import { useLocation } from 'react-router' ;
6
6
import { Link } from 'react-router-dom' ;
7
- import {
8
- NavBarContext ,
9
- ParentMenuContext
10
- } from '../../../../components/Nav/contexts' ;
7
+ import { ParentMenuContext } from '../../../../components/Nav/contexts' ;
11
8
import NavBar from '../../../../components/Nav/NavBar' ;
12
9
import { useMenuProps } from '../../../../components/Nav/NavDropdownMenu' ;
13
10
import NavMenuItem from '../../../../components/Nav/NavMenuItem' ;
@@ -39,7 +36,6 @@ const Nav = styled(NavBar)`
39
36
` ;
40
37
41
38
const LogoContainer = styled . div `
42
- cursor: pointer;
43
39
width: ${ remSize ( 28 ) } ;
44
40
aspect-ratio: 1;
45
41
margin-left: ${ remSize ( 14 ) } ;
@@ -152,16 +148,6 @@ const Options = styled.div`
152
148
}
153
149
` ;
154
150
155
- const Logo = ( ) => {
156
- const { toggleDropdownOpen } = useContext ( NavBarContext ) ;
157
-
158
- return (
159
- < LogoContainer onClick = { ( ) => toggleDropdownOpen ( 'more' ) } >
160
- < AsteriskIcon />
161
- </ LogoContainer >
162
- ) ;
163
- } ;
164
-
165
151
const MobileNav = ( ) => {
166
152
const project = useSelector ( ( state ) => state . project ) ;
167
153
const user = useSelector ( ( state ) => state . user ) ;
@@ -196,9 +182,12 @@ const MobileNav = () => {
196
182
197
183
const title = useMemo ( resolveTitle , [ project , pathname ] ) ;
198
184
185
+ const Logo = AsteriskIcon ;
199
186
return (
200
187
< Nav >
201
- < Logo />
188
+ < LogoContainer >
189
+ < Logo />
190
+ </ LogoContainer >
202
191
< Title >
203
192
< h1 > { title } </ h1 >
204
193
{ project ?. owner && title === project . name && (
0 commit comments