- 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
376 B
TypeScript
8 lines
376 B
TypeScript
import { useTranslation } from "react-i18next";
|
|
import { ComingSoonPage } from "./ComingSoonPage";
|
|
|
|
/** Recipes section — routed at `/recettes`. No backend yet (see README's "Planning" section), stub for now. */
|
|
export function RecipesPage() {
|
|
const { t } = useTranslation();
|
|
return <ComingSoonPage title={t("recipes.title")} description={t("recipes.comingSoon")} />;
|
|
}
|