Skip to content

Commit aef6d9f

Browse files
committed
Updated field name to username, and imports temporary profile picture
1 parent 299a013 commit aef6d9f

1 file changed

Lines changed: 13 additions & 8 deletions

File tree

client/src/components/ui/popups/user_friends_select_popup.tsx

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,12 @@
33
import Link from "next/link";
44
import React from "react";
55

6+
import ProfilePicture from "../profile_picture";
7+
68
type MyFriends = {
79
id: number;
8-
name: string;
10+
// name: string;
11+
username: string;
912
};
1013

1114
type ItemModalProps = {
@@ -23,18 +26,20 @@ function UserFriendsSelectPopup({ isOpen, item, onClose }: ItemModalProps) {
2326
<div className="flex gap-4 pb-4">
2427
{/* Header */}
2528
{/* Avatar */}
26-
<div className="relative flex justify-between">
27-
<div className="relative flex h-24 w-24 items-center justify-center overflow-hidden rounded-full bg-blue-500">
28-
<div className="absolute top-5 h-12 w-12 rounded-full bg-blue-200"></div>
29-
<div className="absolute -bottom-2 left-1/2 h-12 w-16 -translate-x-1/2 rounded-full bg-blue-200"></div>
30-
</div>
31-
</div>
29+
<ProfilePicture />
30+
{/* {profile_picture === Null ? (
31+
<ProfilePicture/>
32+
) : (
33+
item.profile_picture
34+
)}
35+
} */}
36+
3237
{/* Text column */}
3338
<div className="flex min-w-0 flex-1 flex-col">
3439
{/* Name */}
3540
<Link href="/user_friends">
3641
<h2 className="cursor-pointer truncate pl-5 pt-3 text-2xl font-bold hover:text-gray-900 hover:underline">
37-
{item.name}
42+
{item.username}
3843
</h2>
3944
</Link>
4045
{/* other */}

0 commit comments

Comments
 (0)