- 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.
10 lines
381 B
TypeScript
10 lines
381 B
TypeScript
import { useTranslation } from "react-i18next";
|
|
import { ComingSoonPage } from "./ComingSoonPage";
|
|
|
|
/** Shopping list section — routed at `/liste-de-courses`. No backend yet, stub for now. */
|
|
export function ShoppingListPage() {
|
|
const { t } = useTranslation();
|
|
return (
|
|
<ComingSoonPage title={t("shoppingList.title")} description={t("shoppingList.comingSoon")} />
|
|
);
|
|
}
|