Added Function to config Profil
This commit is contained in:
@@ -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">
|
||||
|
||||
Reference in New Issue
Block a user