Skip to content

armgit / plane

Public Imported from GitHub
0

πŸ”₯πŸ”₯πŸ”₯ Open-source Jira, Linear, Monday, and ClickUp alternative. Plane is a modern project management platform to manage tasks, sprints, docs, and triage.

[WEB-6762] fix: missing profile icons for recent activities on "Your Work" Page #8812

b-saikrishnakanthc53968a7f85e
diff --git a/apps/web/core/components/profile/overview/activity.tsx b/apps/web/core/components/profile/overview/activity.tsx
index cda3b8fb84..23bb961f77 100644
--- a/apps/web/core/components/profile/overview/activity.tsx
+++ b/apps/web/core/components/profile/overview/activity.tsx
@@ -9,6 +9,7 @@ import { useParams } from "next/navigation";
import useSWR from "swr";
// ui
import { useTranslation } from "@plane/i18n";
+import { Avatar } from "@plane/propel/avatar";
import { EmptyStateCompact } from "@plane/propel/empty-state";
import { Loader, Card } from "@plane/ui";
import { calculateTimeAgo, getFileURL } from "@plane/utils";
@@ -49,19 +50,12 @@ export const ProfileActivity = observer(function ProfileActivity() {
<div className="space-y-5">
{userProfileActivity.results.map((activity) => (
<div key={activity.id} className="flex gap-3">
- <div className="grid h-6 w-6 flex-shrink-0 place-items-center overflow-hidden rounded-sm">
- {activity.actor_detail?.avatar_url && activity.actor_detail?.avatar_url !== "" ? (
- <img
- src={getFileURL(activity.actor_detail?.avatar_url)}
- alt={activity.actor_detail?.display_name}
- className="rounded-sm"
- />
- ) : (
- <div className="grid h-6 w-6 place-items-center rounded-sm border-2 border-strong text-11 text-on-color">
- {activity.actor_detail?.display_name?.charAt(0)}
- </div>
- )}
- </div>
+ <Avatar
+ name={activity.actor_detail?.display_name}
+ src={getFileURL(activity.actor_detail?.avatar_url)}
+ size="base"
+ shape="square"
+ />
<div className="-mt-1 w-4/5 break-words">
<p className="inline text-13 text-secondary">
<span className="font-medium text-primary">