1
0
Fork 0

feat(sidebar): move Contributions link into Contribute sub-navlist above Minigames

This commit is contained in:
Jason Fraley 2026-11-02 02:04:00 -05:00
parent 70b773ee5b
commit 8951b32157
2 changed files with 11 additions and 7 deletions

View file

@ -1,12 +1,13 @@
"use client"; "use client";
import { ChevronRight, Mic } from "lucide-react"; import { ChevronRight, Mic, Trophy } from "lucide-react";
import Link from "next/link"; import Link from "next/link";
import { import {
DropdownMenu, DropdownMenu,
DropdownMenuContent, DropdownMenuContent,
DropdownMenuItem, DropdownMenuItem,
DropdownMenuSeparator,
DropdownMenuTrigger, DropdownMenuTrigger,
} from "@/components/ui/dropdown-menu"; } from "@/components/ui/dropdown-menu";
import { import {
@ -20,6 +21,8 @@ import {
* (NavUser): a "Contribute" header with a single Voiceover entry. Kept as its * (NavUser): a "Contribute" header with a single Voiceover entry. Kept as its
* own dropdown so it stays visually consistent with the adjacent Minigames * own dropdown so it stays visually consistent with the adjacent Minigames
* entry and can grow to more contribution channels without a code change. * entry and can grow to more contribution channels without a code change.
* Now holds both contribution channels: Voiceover (record takes) and
* Contributions (leaderboard + moderation).
*/ */
export function NavContribute() { export function NavContribute() {
const { isMobile } = useSidebar(); const { isMobile } = useSidebar();
@ -46,6 +49,13 @@ export function NavContribute() {
Voiceover Voiceover
</Link> </Link>
</DropdownMenuItem> </DropdownMenuItem>
<DropdownMenuSeparator />
<DropdownMenuItem asChild>
<Link href="/contributions">
<Trophy />
Contributions
</Link>
</DropdownMenuItem>
</DropdownMenuContent> </DropdownMenuContent>
</DropdownMenu> </DropdownMenu>
</SidebarMenuItem> </SidebarMenuItem>

View file

@ -25,7 +25,6 @@ import {
Search, Search,
Store, Store,
Swords, Swords,
Trophy,
Truck, Truck,
UserCog, UserCog,
Users, Users,
@ -199,11 +198,6 @@ export const sidebarData = {
url: "/awards", url: "/awards",
icon: Award, icon: Award,
}, },
{
title: "Contributions",
url: "/contributions",
icon: Trophy,
},
{ {
title: "Locker", title: "Locker",
url: "/locker", url: "/locker",