profile picture

This commit is contained in:
hamid zarghami
2026-07-20 10:11:43 +03:30
parent bd65d28ea3
commit 94639858f2
11 changed files with 53 additions and 16 deletions
@@ -6,10 +6,12 @@ import Select from "../../../../components/Select";
import { useGetUsers } from "../../../users/hooks/useUserData";
import { UserItemType } from "../../../users/types/UserTypes";
import WorkspaceColorPicker from "./WorkspaceColorPicker";
import UserAvatar from "../../components/UserAvatar";
export type SelectedUser = {
id: string;
name: string;
profilePic?: string;
};
type Props = {
@@ -55,7 +57,11 @@ const CreateWorkspaceSidebar: FC<Props> = ({
if (user) {
onSelectedUsersChange([
...selectedUsers,
{ id: user.id, name: `${user.firstName} ${user.lastName}` },
{
id: user.id,
name: `${user.firstName} ${user.lastName}`,
profilePic: user.profilePic,
},
]);
}
@@ -107,6 +113,7 @@ const CreateWorkspaceSidebar: FC<Props> = ({
key={user.id}
className="bg-[#EBEEF5] flex gap-2 text-xs items-center px-2 py-2 rounded-lg"
>
<UserAvatar src={user.profilePic} alt={user.name} />
<div>{user.name}</div>
<CloseCircle
variant="Bold"