maj pricing, configuration du prisma

This commit is contained in:
2026-02-27 23:57:38 +01:00
parent 5268a7dd68
commit 521e529ab0
18 changed files with 358 additions and 42 deletions

View File

@@ -7,7 +7,7 @@ import { useEffect } from 'react';
export default function ProfilePage() {
const router = useRouter();
const { user, loading } = useAuthContext();
const { user, loading, updateProfile } = useAuthContext();
useEffect(() => {
if (!loading && !user) {
@@ -20,7 +20,13 @@ export default function ProfilePage() {
return (
<UserProfileSettings
user={user}
onUpdate={(updates) => console.log('Profile update:', updates)}
onUpdate={async (updates) => {
try {
await updateProfile(updates);
} catch (err) {
// Handled inside updateProfile (console.error)
}
}}
onBack={() => router.push('/dashboard')}
/>
);