Skip to content

Commit

Permalink
fix: toGPT links should work properly
Browse files Browse the repository at this point in the history
  • Loading branch information
zkrising committed Sep 22, 2023
1 parent 893a43f commit 55c6003
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -456,7 +456,7 @@ function PlayCard({
direction={isLg ? "horizontal" : "vertical"}
className="flex-grow-1 align-items-lg-start align-items-center justify-content-around"
>
<ProfilePicture user={user} toGPT={`${pb.game}/${pb.playtype}`} />
<ProfilePicture user={user} toGPT={`games/${pb.game}/${pb.playtype}`} />
<div
className="d-flex flex-column align-self-stretch justify-content-between align-items-center"
style={{ maxHeight: 128, minWidth: 256 }}
Expand Down
16 changes: 12 additions & 4 deletions client/src/components/activity/Activity.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,11 @@ function ScoresActivity({
<div className="timeline-content-inner" onClick={() => setShow(!show)}>
<div className="timeline-content-title">
<span className="me-2">
<ProfilePicture size="sm" user={user} toGPT={`${game}/${playtype}`} />
<ProfilePicture
size="sm"
user={user}
toGPT={`games/${game}/${playtype}`}
/>
</span>
<Icon
type={`chevron-${show ? "down" : "right"}`}
Expand Down Expand Up @@ -446,7 +450,7 @@ function QuestActivity({
<ProfilePicture
size="sm"
user={user}
toGPT={`${game}/${playtype}`}
toGPT={`games/${game}/${playtype}`}
/>
</span>
<UGPTLink reqUser={user} game={game} playtype={playtype} /> completed
Expand Down Expand Up @@ -499,7 +503,11 @@ function SessionActivity({
<div className="timeline-content-inner" onClick={() => setShow(!show)}>
<div className="timeline-content-title">
<span className="me-2">
<ProfilePicture size="sm" user={user} toGPT={`${game}/${playtype}`} />
<ProfilePicture
size="sm"
user={user}
toGPT={`games/${game}/${playtype}`}
/>
</span>
<Icon
type={`chevron-${show ? "down" : "right"}`}
Expand Down Expand Up @@ -648,7 +656,7 @@ function ClassAchievementActivity({
<ProfilePicture
size="sm"
user={user}
toGPT={`${data.game}/${data.playtype}`}
toGPT={`games/${data.game}/${data.playtype}`}
/>
</span>
<UGPTLink reqUser={user} game={data.game} playtype={data.playtype} />{" "}
Expand Down

0 comments on commit 55c6003

Please sign in to comment.