diff options
| author | Ariel Costas Guerrero <ariel@costas.dev> | 2025-12-29 00:41:52 +0100 |
|---|---|---|
| committer | Ariel Costas Guerrero <ariel@costas.dev> | 2025-12-29 00:41:52 +0100 |
| commit | a304c24b32c0327436bbd8c2853e60668e161b42 (patch) | |
| tree | 08f65c05daca134cf4d2e4f779bd15d98fd66370 /src/frontend/app/contexts | |
| parent | 120a3c6bddd0fb8d9fa05df4763596956554c025 (diff) | |
Rename a lot of stuff, add Santiago real time
Diffstat (limited to 'src/frontend/app/contexts')
| -rw-r--r-- | src/frontend/app/contexts/PageTitleContext.tsx | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/frontend/app/contexts/PageTitleContext.tsx b/src/frontend/app/contexts/PageTitleContext.tsx index 4a13a8a..a7a3ad4 100644 --- a/src/frontend/app/contexts/PageTitleContext.tsx +++ b/src/frontend/app/contexts/PageTitleContext.tsx @@ -12,7 +12,7 @@ const PageTitleContext = createContext<PageTitleContextProps | undefined>( export const PageTitleProvider: React.FC<{ children: React.ReactNode }> = ({ children, }) => { - const [title, setTitle] = useState("Busurbano"); + const [title, setTitle] = useState("EnMarcha"); return ( <PageTitleContext.Provider value={{ title, setTitle }}> @@ -36,13 +36,9 @@ export const usePageTitle = (title: string) => { useEffect(() => { setTitle(title); - document.title = `${title} - Busurbano`; + document.title = `${title} - EnMarcha`; return () => { - // Optional: Reset title on unmount? - // Usually not needed as the next page will set its own title. - // But if we navigate to a page without usePageTitle, it might be stale. - // Let's leave it for now. }; }, [title, setTitle]); }; |
