diff --git a/admin-spa/src/components/PageHeader.tsx b/admin-spa/src/components/PageHeader.tsx index a4b0cf1..d8d95df 100644 --- a/admin-spa/src/components/PageHeader.tsx +++ b/admin-spa/src/components/PageHeader.tsx @@ -1,5 +1,4 @@ import React from 'react'; -import { useLocation } from 'react-router-dom'; import { usePageHeader } from '@/contexts/PageHeaderContext'; interface PageHeaderProps { @@ -9,18 +8,14 @@ interface PageHeaderProps { export function PageHeader({ fullscreen = false, hideOnDesktop = false }: PageHeaderProps) { const { title, action } = usePageHeader(); - const location = useLocation(); if (!title) return null; - // Special case: Payments page should hide header on desktop (has its own layout) - const isPaymentsPage = location.pathname.startsWith('/settings/payments'); - const shouldHideOnDesktop = hideOnDesktop || isPaymentsPage; - // PageHeader is now ABOVE submenu in DOM order // z-20 ensures it stays on top when both are sticky + // Only hide on desktop if explicitly requested (for mobile-only headers) return ( -