- App.tsx: every authenticated route now nests under one
RequireAuth + AppLayout parent route (react-router nested
routes/<Outlet />) instead of each page wrapping its own guard.
- New routes/pages: /recettes, /liste-de-courses, /foyer, each a thin
wrapper around a shared ComingSoonPage ("cette section arrive
bientôt.") — no backend behind them yet, matches the "pages stub
dédiées" choice discussed in chat.
- locales/fr/translation.json: nav labels + stub copy.
HomePage still shows its own greeting/logout card here (unchanged,
now nested inside AppLayout's <Outlet /> — briefly duplicating the
sidebar's greeting/logout) — replaced by the actual planning view in
the next commit.
8 lines
369 B
TypeScript
8 lines
369 B
TypeScript
import { useTranslation } from "react-i18next";
|
|
import { ComingSoonPage } from "./ComingSoonPage";
|
|
|
|
/** Household & profile section — routed at `/foyer`. No backend yet beyond auth, stub for now. */
|
|
export function HouseholdPage() {
|
|
const { t } = useTranslation();
|
|
return <ComingSoonPage title={t("household.title")} description={t("household.comingSoon")} />;
|
|
}
|