fix(nav): show full navigation on /games page
Fixed AppNavBar auto-detecting /games route as needing minimal mode. The /games page should use the full navigation bar (like /create and /guide), not the minimal arcade nav with only a hamburger menu. Changed route detection to only apply minimal nav to /arcade/* routes, not /games route. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
parent
36bfe9c219
commit
d3fe6acbb0
|
|
@ -567,7 +567,6 @@ function MinimalNav({
|
|||
export function AppNavBar({ variant = 'full', navSlot }: AppNavBarProps) {
|
||||
const pathname = usePathname()
|
||||
const router = useRouter()
|
||||
const isGamePage = pathname?.startsWith('/games')
|
||||
const isArcadePage = pathname?.startsWith('/arcade')
|
||||
const { isFullscreen, toggleFullscreen, exitFullscreen } = useFullscreen()
|
||||
|
||||
|
|
@ -583,7 +582,8 @@ export function AppNavBar({ variant = 'full', navSlot }: AppNavBarProps) {
|
|||
const showBranding = !homeHero || !homeHero.isHeroVisible
|
||||
|
||||
// Auto-detect variant based on context
|
||||
const actualVariant = variant === 'full' && (isGamePage || isArcadePage) ? 'minimal' : variant
|
||||
// Only arcade pages (not /games) should use minimal nav
|
||||
const actualVariant = variant === 'full' && isArcadePage ? 'minimal' : variant
|
||||
|
||||
// Mini nav for games/arcade (both fullscreen and non-fullscreen)
|
||||
if (actualVariant === 'minimal') {
|
||||
|
|
|
|||
Loading…
Reference in New Issue