diff options
| author | Ariel Costas Guerrero <ariel@costas.dev> | 2026-01-01 02:46:29 +0100 |
|---|---|---|
| committer | Ariel Costas Guerrero <ariel@costas.dev> | 2026-01-01 02:46:29 +0100 |
| commit | 77cdd394b947a99b70654cd1f5aff3ee724b76fc (patch) | |
| tree | c3a0fd61c6f2dffbde977d35f86010f01fcad1e0 /src/frontend/app/components/layout/AppShell.tsx | |
| parent | 53597c414255d898a082cbc464e8a4b1be11fc97 (diff) | |
Add enmarcha announcementold-main
Diffstat (limited to 'src/frontend/app/components/layout/AppShell.tsx')
| -rw-r--r-- | src/frontend/app/components/layout/AppShell.tsx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/frontend/app/components/layout/AppShell.tsx b/src/frontend/app/components/layout/AppShell.tsx index afc19f3..1088035 100644 --- a/src/frontend/app/components/layout/AppShell.tsx +++ b/src/frontend/app/components/layout/AppShell.tsx @@ -1,9 +1,11 @@ import React, { useState } from "react"; import { Outlet } from "react-router"; +import { useEnMarchaAnnouncement } from "~/hooks/useEnMarchaAnnouncement"; import { PageTitleProvider, usePageTitleContext, } from "~/contexts/PageTitleContext"; +import { EnMarchaAnnouncement } from "../EnMarchaAnnouncement"; import { ThemeColorManager } from "../ThemeColorManager"; import "./AppShell.css"; import { Drawer } from "./Drawer"; @@ -13,6 +15,7 @@ import NavBar from "./NavBar"; const AppShellContent: React.FC = () => { const { title } = usePageTitleContext(); const [isDrawerOpen, setIsDrawerOpen] = useState(false); + const { isOpen, closeAnnouncement } = useEnMarchaAnnouncement(); return ( <div className="app-shell"> @@ -31,6 +34,8 @@ const AppShellContent: React.FC = () => { <footer className="app-shell__bottom-nav"> <NavBar /> </footer> + + <EnMarchaAnnouncement isOpen={isOpen} onClose={closeAnnouncement} /> </div> ); }; |
