refactor(admin): migrate page titles from static map to self-registering pages

This commit is contained in:
2026-04-22 17:46:53 -04:00
parent 94aaeb241b
commit fa40565686
8 changed files with 21 additions and 25 deletions
@@ -1,6 +1,6 @@
'use client';
import { getWidgets } from '../registry.js';
import { getWidgets, registerPage } from '../registry.js';
import AdminHeader from '../components/AdminHeader.js';
export default function DashboardPage({ stats }) {
@@ -18,3 +18,5 @@ export default function DashboardPage({ stats }) {
</div>
);
}
registerPage({ slug: 'dashboard', title: 'Tableau de bord', Component: DashboardPage });