mirror of
https://github.com/xCyanGrizzly/DragonsStash.git
synced 2026-05-11 06:11:15 +00:00
Fix telegram page redirect: make first user admin and hide admin-only nav items from non-admins
Co-authored-by: xCyanGrizzly <53275238+xCyanGrizzly@users.noreply.github.com>
This commit is contained in:
@@ -1,17 +1,17 @@
|
||||
export const APP_NAME = "Dragon's Stash";
|
||||
|
||||
export const NAV_ITEMS = [
|
||||
{ label: "Dashboard", href: "/dashboard", icon: "LayoutDashboard" },
|
||||
{ label: "Filaments", href: "/filaments", icon: "Cylinder" },
|
||||
{ label: "Resins", href: "/resins", icon: "Droplets" },
|
||||
{ label: "Paints", href: "/paints", icon: "Paintbrush" },
|
||||
{ label: "Supplies", href: "/supplies", icon: "Gem" },
|
||||
{ label: "STL Files", href: "/stls", icon: "FileBox" },
|
||||
{ label: "Telegram", href: "/telegram", icon: "Send" },
|
||||
{ label: "Usage", href: "/usage", icon: "ClipboardList" },
|
||||
{ label: "Vendors", href: "/vendors", icon: "Building2" },
|
||||
{ label: "Locations", href: "/locations", icon: "MapPin" },
|
||||
{ label: "Settings", href: "/settings", icon: "Settings" },
|
||||
{ label: "Dashboard", href: "/dashboard", icon: "LayoutDashboard", adminOnly: false },
|
||||
{ label: "Filaments", href: "/filaments", icon: "Cylinder", adminOnly: false },
|
||||
{ label: "Resins", href: "/resins", icon: "Droplets", adminOnly: false },
|
||||
{ label: "Paints", href: "/paints", icon: "Paintbrush", adminOnly: false },
|
||||
{ label: "Supplies", href: "/supplies", icon: "Gem", adminOnly: false },
|
||||
{ label: "STL Files", href: "/stls", icon: "FileBox", adminOnly: false },
|
||||
{ label: "Telegram", href: "/telegram", icon: "Send", adminOnly: true },
|
||||
{ label: "Usage", href: "/usage", icon: "ClipboardList", adminOnly: false },
|
||||
{ label: "Vendors", href: "/vendors", icon: "Building2", adminOnly: false },
|
||||
{ label: "Locations", href: "/locations", icon: "MapPin", adminOnly: false },
|
||||
{ label: "Settings", href: "/settings", icon: "Settings", adminOnly: false },
|
||||
] as const;
|
||||
|
||||
export const MATERIALS = [
|
||||
|
||||
Reference in New Issue
Block a user