From b0332c882b13279ec1d575288744bcdf4fb933c9 Mon Sep 17 00:00:00 2001 From: Paul Date: Fri, 2 Jul 2021 19:01:28 +0100 Subject: [PATCH] Fix profile links from user profiles. --- .../intermediate/popovers/UserProfile.tsx | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/src/context/intermediate/popovers/UserProfile.tsx b/src/context/intermediate/popovers/UserProfile.tsx index 22167c5c..e8a22e5b 100644 --- a/src/context/intermediate/popovers/UserProfile.tsx +++ b/src/context/intermediate/popovers/UserProfile.tsx @@ -35,7 +35,7 @@ enum Badges { } export function UserProfile({ user_id, onClose, dummy, dummyProfile }: Props) { - const { writeClipboard } = useIntermediate(); + const { openScreen, writeClipboard } = useIntermediate(); const [profile, setProfile] = useState( undefined @@ -288,15 +288,12 @@ export function UserProfile({ user_id, onClose, dummy, dummyProfile }: Props) { users.map( x => x && ( - // -
- - {x.username} -
- //
+
openScreen({ id: 'profile', user_id: x._id })} + className={styles.entry} + key={x._id}> + + {x.username} +
) ) )}