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} +
) ) )}