Testing avatar
This commit is contained in:
@@ -19,6 +19,7 @@ import { NumberMap, StringMap } from "@/types/typeUtils";
|
||||
import { User } from "@/hooks/get-user";
|
||||
import axios from "axios";
|
||||
import { Avatar, AvatarFallback, AvatarImage } from "./ui/avatar";
|
||||
import ProfilePicture from "./ProfilePicture";
|
||||
|
||||
function MessageContainer({
|
||||
message,
|
||||
@@ -42,17 +43,13 @@ function MessageContainer({
|
||||
<div className="flex flex-col gap-3 rounded-lg p-4 hover:bg-accent">
|
||||
<div className="flex gap-2">
|
||||
{/* <div className="w-8 h-8 rounded-full bg-gray-400" /> */}
|
||||
<Avatar className="h-8 w-8">
|
||||
<AvatarImage
|
||||
src="https://github.com/kleo-dev.png"
|
||||
alt={message.from.toString()}
|
||||
/>
|
||||
<AvatarFallback>
|
||||
{userList[message.from]
|
||||
<ProfilePicture
|
||||
name={String(
|
||||
userList[message.from]
|
||||
? userList[message.from].username
|
||||
: message.from}
|
||||
</AvatarFallback>
|
||||
</Avatar>
|
||||
: message.from
|
||||
)}
|
||||
/>
|
||||
<div className="flex flex-col flex-1">
|
||||
<span className="font-bold flex gap-1 items-center">
|
||||
{userList[message.from]
|
||||
|
||||
Reference in New Issue
Block a user