feat(sidebar): move Contributions link into Contribute sub-navlist above Minigames
This commit is contained in:
parent
70b773ee5b
commit
8951b32157
2 changed files with 11 additions and 7 deletions
|
|
@ -1,12 +1,13 @@
|
|||
"use client";
|
||||
|
||||
import { ChevronRight, Mic } from "lucide-react";
|
||||
import { ChevronRight, Mic, Trophy } from "lucide-react";
|
||||
import Link from "next/link";
|
||||
|
||||
import {
|
||||
DropdownMenu,
|
||||
DropdownMenuContent,
|
||||
DropdownMenuItem,
|
||||
DropdownMenuSeparator,
|
||||
DropdownMenuTrigger,
|
||||
} from "@/components/ui/dropdown-menu";
|
||||
import {
|
||||
|
|
@ -20,6 +21,8 @@ import {
|
|||
* (NavUser): a "Contribute" header with a single Voiceover entry. Kept as its
|
||||
* own dropdown so it stays visually consistent with the adjacent Minigames
|
||||
* 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() {
|
||||
const { isMobile } = useSidebar();
|
||||
|
|
@ -46,6 +49,13 @@ export function NavContribute() {
|
|||
Voiceover
|
||||
</Link>
|
||||
</DropdownMenuItem>
|
||||
<DropdownMenuSeparator />
|
||||
<DropdownMenuItem asChild>
|
||||
<Link href="/contributions">
|
||||
<Trophy />
|
||||
Contributions
|
||||
</Link>
|
||||
</DropdownMenuItem>
|
||||
</DropdownMenuContent>
|
||||
</DropdownMenu>
|
||||
</SidebarMenuItem>
|
||||
|
|
|
|||
|
|
@ -25,7 +25,6 @@ import {
|
|||
Search,
|
||||
Store,
|
||||
Swords,
|
||||
Trophy,
|
||||
Truck,
|
||||
UserCog,
|
||||
Users,
|
||||
|
|
@ -199,11 +198,6 @@ export const sidebarData = {
|
|||
url: "/awards",
|
||||
icon: Award,
|
||||
},
|
||||
{
|
||||
title: "Contributions",
|
||||
url: "/contributions",
|
||||
icon: Trophy,
|
||||
},
|
||||
{
|
||||
title: "Locker",
|
||||
url: "/locker",
|
||||
|
|
|
|||
Loading…
Reference in a new issue