From 9ece9899e1d09fb49c82f4e7aed5793d7f521163 Mon Sep 17 00:00:00 2001 From: zkldi <20380519+zkldi@users.noreply.github.com> Date: Thu, 23 Mar 2023 01:12:57 +0000 Subject: [PATCH] feat: cute pfp stuff --- client/src/components/activity/Activity.tsx | 21 +++++++++ client/src/components/user/ProfilePicture.tsx | 46 +++++++++++++++++++ 2 files changed, 67 insertions(+) diff --git a/client/src/components/activity/Activity.tsx b/client/src/components/activity/Activity.tsx index 2fb2aa5db..0dad7f3f3 100644 --- a/client/src/components/activity/Activity.tsx +++ b/client/src/components/activity/Activity.tsx @@ -37,6 +37,7 @@ import { ClumpedActivitySession, } from "types/tachi"; import { InnerQuestSectionGoal } from "components/targets/quests/Quest"; +import ProfilePicture, { ProfilePictureSmall } from "components/user/ProfilePicture"; // Records activity for a group of users on a GPT. Also used for single users. export default function Activity({ @@ -298,6 +299,9 @@ function ScoresActivity({
setShow(!show)}>
+ + +
setShow(!show)}>
+ + +
+ + + completed the{" "}
setShow(!show)}>
+ + +
+ + + {" "} achieved{" "} ); } + +export function ProfilePictureSmall({ + user, + src, + toGPT = "", +}: { + user: UserDocument | string; + src?: string; + + /** + * When clicking this this profile, should it take you to a UGPT page? + */ + toGPT?: string; +}) { + if (typeof user === "string") { + return ( + + {`${user}'s + + ); + } + + return ( + + {`${user.username}'s + + ); +}