File tree Expand file tree Collapse file tree 3 files changed +7
-2
lines changed Expand file tree Collapse file tree 3 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -75,6 +75,7 @@ export const MainMenu = (props: MainMenuProps) => {
75
75
mainUrl = { extraButton . link }
76
76
textColor = { extraButton . textColor }
77
77
backgroundColor = { extraButton . backgroundColor }
78
+ isExtraButton
78
79
/>
79
80
) : null }
80
81
</ div >
Original file line number Diff line number Diff line change @@ -16,7 +16,8 @@ export const MenuItem = (props: MenuItemProps) => {
16
16
isMobile,
17
17
mainUrl,
18
18
textColor,
19
- backgroundColor
19
+ backgroundColor,
20
+ isExtraButton
20
21
} = props
21
22
22
23
const mainRedirect = useCallback ( ( ) => {
@@ -27,7 +28,9 @@ export const MenuItem = (props: MenuItemProps) => {
27
28
< Menu . Item
28
29
active = { activePage === section }
29
30
onClick = { ( e : React . MouseEvent ) => {
30
- isMobile ? onToggleShowSubMenu ( e , true , section ) : mainRedirect ( )
31
+ isMobile && ! isExtraButton
32
+ ? onToggleShowSubMenu ( e , true , section )
33
+ : mainRedirect ( )
31
34
} }
32
35
onMouseEnter = { ( e : React . MouseEvent ) =>
33
36
! isMobile && onToggleShowSubMenu ( e , true , section )
Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ export type MenuItemProps = {
11
11
) => void
12
12
mainUrl ?: string
13
13
isMobile ?: boolean
14
+ isExtraButton ?: boolean
14
15
textColor ?: string
15
16
backgroundColor ?: string
16
17
}
You can’t perform that action at this time.
0 commit comments