diff --git a/src/components/AppHeader.jsx b/src/components/AppHeader.jsx index e1e8a90..71dea3c 100644 --- a/src/components/AppHeader.jsx +++ b/src/components/AppHeader.jsx @@ -14,7 +14,7 @@ export default function AppHeader({ zone = 'public', onSelectMenuItem }) { }; const [drawerExpanded, setDrawerExpanded] = useState(true); - const [currentPage, setCurrentPage] = useState('Dashboard'); // track current page + const [currentPage, setCurrentPage] = useState('Dashboard'); const { user } = useAuth(); const isPrivate = zone === 'private'; @@ -24,10 +24,8 @@ export default function AppHeader({ zone = 'public', onSelectMenuItem }) { const navigate = useNavigate(); const handleMenuSelect = (page) => { - setCurrentPage(page); // update page title - onSelectMenuItem?.(page); // still notify parent - // you can also navigate if you have routes: - // navigate(`/${page.toLowerCase().replace(/\s+/g, '-')}`); + setCurrentPage(page); + onSelectMenuItem?.(page); }; return ( @@ -43,8 +41,6 @@ export default function AppHeader({ zone = 'public', onSelectMenuItem }) { right: 0, }} > - - {/* LEFT SIDE: Current Page */} {currentPage} diff --git a/src/components/Footer.jsx b/src/components/Footer.jsx index e543fdb..bc91838 100644 --- a/src/components/Footer.jsx +++ b/src/components/Footer.jsx @@ -24,8 +24,8 @@ export default function Footer({ zone = 'public' }) { Fendi logo {zone === 'private' - ? `Admin Panel - Fendi ${year}` - : `© ${year} Fendi. All rights reserved.`} + ? `Admin Panel - Dream Views ${year}` + : `© ${year} Dream Views. All rights reserved.`} );