fix: update sub-navigation item colors for active, hover, and default states

This commit is contained in:
syntaxbullet
2026-01-16 16:27:23 +01:00
parent 58f261562a
commit 3c1334b30e
3 changed files with 33 additions and 30 deletions

View File

@@ -1,10 +1,11 @@
import * as React from "react"
import { useLocation, type Location } from "react-router-dom"
import { Home, Palette, ShieldCheck, Users, Settings, BarChart3, Scroll, type LucideIcon } from "lucide-react"
import { Home, Palette, ShieldCheck, Settings, LayoutDashboard, Trophy, SlidersHorizontal, Coins, Cog, UserCog, type LucideIcon } from "lucide-react"
export interface NavSubItem {
title: string
url: string
icon: LucideIcon
isActive?: boolean
}
@@ -43,9 +44,8 @@ const NAV_CONFIG: NavConfigItem[] = [
url: "/admin",
icon: ShieldCheck,
subItems: [
{ title: "Overview", url: "/admin/overview" },
{ title: "Quests", url: "/admin/quests" },
{ title: "Overview", url: "/admin/overview", icon: LayoutDashboard },
{ title: "Quests", url: "/admin/quests", icon: Trophy },
]
},
{
@@ -53,10 +53,10 @@ const NAV_CONFIG: NavConfigItem[] = [
url: "/settings",
icon: Settings,
subItems: [
{ title: "General", url: "/settings/general" },
{ title: "Economy", url: "/settings/economy" },
{ title: "Systems", url: "/settings/systems" },
{ title: "Roles", url: "/settings/roles" },
{ title: "General", url: "/settings/general", icon: SlidersHorizontal },
{ title: "Economy", url: "/settings/economy", icon: Coins },
{ title: "Systems", url: "/settings/systems", icon: Cog },
{ title: "Roles", url: "/settings/roles", icon: UserCog },
]
},
]