Skip to content

Commit 685fc91

Browse files
vidvidvidalalonde
authored andcommitted
fix: change the metagame logo navigation to /dashboard
1 parent f661dca commit 685fc91

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

packages/web/components/MegaMenu.tsx

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff 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 ? (

0 commit comments

Comments
 (0)