File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -98,8 +98,11 @@ const menuIcons: { [key: string]: string } = {
9898 becomeapatron : BecomeAPatron ,
9999} ;
100100
101+ type LogoProps = {
102+ link : string ;
103+ } ;
101104// Navbar logo
102- const Logo = ( ) => (
105+ const Logo = ( { link } : LogoProps ) => (
103106 < Box
104107 className = "logo"
105108 w = { { base : 'fit-content' , lg : '209px' } }
@@ -108,7 +111,7 @@ const Logo = () => (
108111 textAlign = { { base : 'center' , lg : 'left' } }
109112 >
110113 < MetaLink
111- href = "/"
114+ href = { link }
112115 _focus = { { outline : 'none' , bg : 'transparent' } }
113116 _hover = { { bg : 'transparent' } }
114117 _active = { { bg : 'transparent' } }
@@ -490,7 +493,7 @@ export const MegaMenu: React.FC = () => {
490493 w = { { base : 'fit-content' , lg : '100%' } }
491494 justifyContent = "space-between"
492495 >
493- < Logo />
496+ < Logo link = { user ?. player ? '/dashboard' : '/' } />
494497 < DesktopNavLinks />
495498 { /* <Search /> */ }
496499 { fetching ? (
You can’t perform that action at this time.
0 commit comments