Skip to content

Commit d29b0ac

Browse files
committed
fix(gallary): switch to insta on mobile
1 parent b88fcb5 commit d29b0ac

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/components/Navbar.tsx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,13 @@ import NextLink from "next/link";
2020
interface Link {
2121
name: string;
2222
href: string;
23+
mobileHref?: string;
2324
}
2425

2526
const links: Array<Link> = [
2627
{ name: "Home", href: "/" },
2728
{ name: "About us", href: "/about" },
28-
{ name: "Gallery", href: "/gallery" },
29+
{ name: "Gallery", href: "/gallery", mobileHref: "https://www.instagram.com/ubctenniscircle/" },
2930
{ name: "Contact", href: "/contact" },
3031
];
3132

@@ -146,8 +147,8 @@ const MobileNav = () => {
146147
{links.map((i) => (
147148
<Link
148149
as={NextLink}
149-
href={i.href}
150-
key={i.href}
150+
href={i.mobileHref ? i.mobileHref : i.href}
151+
key={i.mobileHref ? i.mobileHref : i.href}
151152
onClick={onToggle}
152153
fontWeight="medium"
153154
color="gray.500"

0 commit comments

Comments
 (0)