Skip to content

Commit 92f636b

Browse files
committed
fix(sidebar): ginger island on mobile nav
1 parent 4de9433 commit 92f636b

2 files changed

Lines changed: 31 additions & 2 deletions

File tree

apps/stardew.app/src/components/sheets/mobile-nav.tsx

Lines changed: 31 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ import { PlayersContext } from "@/contexts/players-context";
2222

2323
import {
2424
collectionsNavigation,
25+
islandNavigation,
2526
linksNavigation,
2627
miscNavigation,
2728
playerNavigation,
@@ -72,8 +73,6 @@ export const MobileNav = ({
7273

7374
if (typeof file === "undefined" || !file) return;
7475

75-
console.log(file);
76-
7776
if (file.type !== "") {
7877
toast.error("Invalid file type", {
7978
description: "Please upload a Stardew Valley save file.",
@@ -338,6 +337,36 @@ export const MobileNav = ({
338337
))}
339338
</div>
340339
</section>
340+
{/* Ginger Island */}
341+
<section>
342+
<h4 className="mb-2 mt-4 font-semibold tracking-tight text-neutral-700 dark:text-neutral-300">
343+
Ginger Island
344+
</h4>
345+
<div className="space-y-1">
346+
{islandNavigation.map((item) => (
347+
<Button
348+
key={item.href}
349+
variant={pathname === item.href ? "secondary" : "ghost"}
350+
className={cn(
351+
"w-full justify-start",
352+
item.href === pathname
353+
? ""
354+
: "text-neutral-600 dark:text-neutral-400",
355+
)}
356+
asChild
357+
onClick={() => setIsOpen(false)}
358+
>
359+
<Link href={item.href}>
360+
<item.icon
361+
className="mr-2 h-4 w-4"
362+
aria-hidden="true"
363+
/>
364+
{item.name}
365+
</Link>
366+
</Button>
367+
))}
368+
</div>
369+
</section>
341370
{/* Misc */}
342371
<section>
343372
<h4 className="mb-2 mt-4 font-semibold tracking-tight text-neutral-700 dark:text-neutral-300">

bun.lockb

1.05 KB
Binary file not shown.

0 commit comments

Comments
 (0)