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,5 +1,6 @@
'use client';
import { registerPage } from '../registry.js';
import React, { useState, useEffect, useRef } from 'react';
import { Card, Input, Button } from '@zen/core/shared/components';
import { useToast } from '@zen/core/toast';
@@ -320,3 +321,5 @@ const ProfilePage = ({ user: initialUser }) => {
};
export default ProfilePage;
registerPage({ slug: 'profile', title: 'Mon profil', Component: ProfilePage });