From bd0aee233db031da90de8f8c8b4c1893f619dbe2 Mon Sep 17 00:00:00 2001 From: kuekhaoyang Date: Sun, 4 Jan 2026 18:24:55 +0800 Subject: [PATCH] feat: add `isSecret` prop to `PlayerNavbar` for conditional navigation and title text, and update package version --- app/player/page.tsx | 2 +- components/player/PlayerNavbar.tsx | 6 +++--- package-lock.json | 4 ++-- package.json | 2 +- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/app/player/page.tsx b/app/player/page.tsx index 99fb0fa..4ad55e4 100644 --- a/app/player/page.tsx +++ b/app/player/page.tsx @@ -136,7 +136,7 @@ function PlayerContent() { return (
{/* Glass Navbar */} - +
{loading ? ( diff --git a/components/player/PlayerNavbar.tsx b/components/player/PlayerNavbar.tsx index 7ed1c8f..154c16d 100644 --- a/components/player/PlayerNavbar.tsx +++ b/components/player/PlayerNavbar.tsx @@ -6,7 +6,7 @@ import { ThemeSwitcher } from '@/components/ThemeSwitcher'; import { Icons } from '@/components/ui/Icon'; import { siteConfig } from '@/lib/config/site-config'; -export function PlayerNavbar() { +export function PlayerNavbar({ isSecret }: { isSecret?: boolean }) { const router = useRouter(); return ( @@ -15,9 +15,9 @@ export function PlayerNavbar() {