Testing avatar

This commit is contained in:
2025-10-06 23:28:04 +02:00
parent fa46abde21
commit 2122d6d74f
4 changed files with 21 additions and 18 deletions
+2 -4
View File
@@ -32,6 +32,7 @@ import Channel from "@/types/channel";
import Link from "next/link";
import { NumberMap } from "@/types/typeUtils";
import { User } from "@/hooks/get-user";
import ProfilePicture from "./ProfilePicture";
export default function AppSidebar({
user,
@@ -204,10 +205,7 @@ export default function AppSidebar({
function DMItem({ name, status }: { name: string; status: string }) {
return (
<Card className="p-2 flex flex-row items-center gap-2 cursor-pointer hover:bg-accent">
<Avatar className="h-8 w-8">
<AvatarImage src="https://github.com/kleo-dev.png" alt={name} />
<AvatarFallback>{name[0]}</AvatarFallback>
</Avatar>
<ProfilePicture name={name} />
<div className="flex flex-col">
<span className="text-sm font-medium">{name}</span>
<span className="text-xs text-muted-foreground">{status}</span>