Skip to content

Commit

Permalink
fix(gallary): switch to insta on mobile
Browse files Browse the repository at this point in the history
  • Loading branch information
elliotsaha committed Sep 23, 2024
1 parent b88fcb5 commit d29b0ac
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/components/Navbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,13 @@ import NextLink from "next/link";
interface Link {
name: string;
href: string;
mobileHref?: string;
}

const links: Array<Link> = [
{ name: "Home", href: "/" },
{ name: "About us", href: "/about" },
{ name: "Gallery", href: "/gallery" },
{ name: "Gallery", href: "/gallery", mobileHref: "https://www.instagram.com/ubctenniscircle/" },
{ name: "Contact", href: "/contact" },
];

Expand Down Expand Up @@ -146,8 +147,8 @@ const MobileNav = () => {
{links.map((i) => (
<Link
as={NextLink}
href={i.href}
key={i.href}
href={i.mobileHref ? i.mobileHref : i.href}
key={i.mobileHref ? i.mobileHref : i.href}
onClick={onToggle}
fontWeight="medium"
color="gray.500"
Expand Down

0 comments on commit d29b0ac

Please sign in to comment.