mirror of
https://github.com/zitadel/zitadel.git
synced 2025-12-12 07:24:51 +00:00
@zitadel/react theme wrapper, component
This commit is contained in:
@@ -1,18 +1,15 @@
|
||||
import { Avatar, AvatarSize } from "#/ui/Avatar";
|
||||
|
||||
type Props = {
|
||||
name: string;
|
||||
};
|
||||
|
||||
export default function UserAvatar({ name }: Props) {
|
||||
return (
|
||||
<div className="flex w-full flex-row items-center rounded-full border p-[1px] dark:border-white/20">
|
||||
{/* <Image
|
||||
height={20}
|
||||
width={20}
|
||||
className="avatar-img"
|
||||
src=""
|
||||
alt="user-avatar"
|
||||
/> */}
|
||||
<div className="h-8 w-8 rounded-full bg-primary-light-700 dark:bg-primary-dark-800"></div>
|
||||
<div className="flex h-full w-full flex-row items-center rounded-full border p-[1px] dark:border-white/20">
|
||||
<div>
|
||||
<Avatar size={AvatarSize.SMALL} name={name} loginName={name} />
|
||||
</div>
|
||||
<span className="ml-4 text-14px">{name}</span>
|
||||
</div>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user