From 7348781b89178589036620b33f3554b2e7271c5f Mon Sep 17 00:00:00 2001 From: Ariel Costas Guerrero Date: Fri, 30 Jan 2026 19:29:55 +0100 Subject: feat: Enhance header and app shell with back navigation and dynamic title support --- src/frontend/app/components/layout/AppShell.tsx | 5 +++-- src/frontend/app/components/layout/Header.css | 4 +--- src/frontend/app/components/layout/Header.tsx | 28 +++++++++++++++++++++++-- 3 files changed, 30 insertions(+), 7 deletions(-) (limited to 'src/frontend/app/components/layout') diff --git a/src/frontend/app/components/layout/AppShell.tsx b/src/frontend/app/components/layout/AppShell.tsx index afc19f3..50f5742 100644 --- a/src/frontend/app/components/layout/AppShell.tsx +++ b/src/frontend/app/components/layout/AppShell.tsx @@ -1,5 +1,5 @@ import React, { useState } from "react"; -import { Outlet } from "react-router"; +import { Outlet, useLocation } from "react-router"; import { PageTitleProvider, usePageTitleContext, @@ -13,6 +13,7 @@ import NavBar from "./NavBar"; const AppShellContent: React.FC = () => { const { title } = usePageTitleContext(); const [isDrawerOpen, setIsDrawerOpen] = useState(false); + const location = useLocation(); return (
@@ -25,7 +26,7 @@ const AppShellContent: React.FC = () => { setIsDrawerOpen(false)} />
- +