fix(web): render customer portal as full-page layout without admin nav (#55)

fix: render customer portal as full-page layout

Separates /portal route from admin layout so the customer portal renders independently.
This commit was merged in pull request #55.
This commit is contained in:
groombook-paperclip[bot]
2026-03-19 02:05:08 +00:00
committed by GitHub
parent 5757cd0631
commit 1136824fe3
+11 -2
View File
@@ -20,7 +20,7 @@ const NAV_LINKS = [
{ to: "/portal", label: "Customer Portal" }, { to: "/portal", label: "Customer Portal" },
]; ];
export function App() { function AdminLayout() {
const location = useLocation(); const location = useLocation();
return ( return (
<div style={{ minHeight: "100vh", fontFamily: "system-ui, sans-serif" }}> <div style={{ minHeight: "100vh", fontFamily: "system-ui, sans-serif" }}>
@@ -82,9 +82,18 @@ export function App() {
<Route path="/book" element={<BookPage />} /> <Route path="/book" element={<BookPage />} />
<Route path="/group-bookings" element={<GroupBookingPage />} /> <Route path="/group-bookings" element={<GroupBookingPage />} />
<Route path="/reports" element={<ReportsPage />} /> <Route path="/reports" element={<ReportsPage />} />
<Route path="/portal" element={<CustomerPortal />} />
</Routes> </Routes>
</main> </main>
</div> </div>
); );
} }
export function App() {
const location = useLocation();
if (location.pathname.startsWith("/portal")) {
return <CustomerPortal />;
}
return <AdminLayout />;
}