Skip to content

Commit

Permalink
fix: change the metagame logo navigation to /dashboard
Browse files Browse the repository at this point in the history
  • Loading branch information
vidvidvid authored and alalonde committed Dec 26, 2021
1 parent f661dca commit 685fc91
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions packages/web/components/MegaMenu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,11 @@ const menuIcons: { [key: string]: string } = {
becomeapatron: BecomeAPatron,
};

type LogoProps = {
link: string;
};
// Navbar logo
const Logo = () => (
const Logo = ({ link }: LogoProps) => (
<Box
className="logo"
w={{ base: 'fit-content', lg: '209px' }}
Expand All @@ -108,7 +111,7 @@ const Logo = () => (
textAlign={{ base: 'center', lg: 'left' }}
>
<MetaLink
href="/"
href={link}
_focus={{ outline: 'none', bg: 'transparent' }}
_hover={{ bg: 'transparent' }}
_active={{ bg: 'transparent' }}
Expand Down Expand Up @@ -490,7 +493,7 @@ export const MegaMenu: React.FC = () => {
w={{ base: 'fit-content', lg: '100%' }}
justifyContent="space-between"
>
<Logo />
<Logo link={user?.player ? '/dashboard' : '/'} />
<DesktopNavLinks />
{/* <Search /> */}
{fetching ? (
Expand Down

1 comment on commit 685fc91

@vercel
Copy link

@vercel vercel bot commented on 685fc91 Dec 26, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.