Added Function to config Profil

This commit is contained in:
2026-02-08 14:21:07 +01:00
parent ff6201a42c
commit f1e9e3f8d4
11 changed files with 557 additions and 10 deletions

View File

@@ -345,6 +345,7 @@ export default function ConfigurationContent() {
id: string;
email: string;
name: string | null;
photoUrl?: string | null;
roleId: string | null;
role: {
id: string;
@@ -495,9 +496,17 @@ export default function ConfigurationContent() {
>
<div className="flex items-center gap-4">
{/* Avatar */}
<div className="w-12 h-12 rounded-full bg-gradient-to-br from-lblue to-dblue flex items-center justify-center text-white font-semibold flex-shrink-0">
{getUserInitials(user.name, user.email)}
</div>
{user.photoUrl ? (
<img
src={user.photoUrl}
alt={user.name || user.email}
className="w-12 h-12 rounded-full object-cover flex-shrink-0 border-2 border-gray-200"
/>
) : (
<div className="w-12 h-12 rounded-full bg-gradient-to-br from-lblue to-dblue flex items-center justify-center text-white font-semibold flex-shrink-0">
{getUserInitials(user.name, user.email)}
</div>
)}
{/* Informations */}
<div className="flex-1 min-w-0">