diff --git a/src/context/intermediate/popovers/UserProfile.tsx b/src/context/intermediate/popovers/UserProfile.tsx index 22167c5c94072dd8ae8b2282948c7a4c216ae63d..e8a22e5b1ee37f4c6960f4bb0f8e7be2e0ae366d 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 | null | Users.Profile>( undefined @@ -288,15 +288,12 @@ export function UserProfile({ user_id, onClose, dummy, dummyProfile }: Props) { users.map( x => x && ( - //<LinkProfile user_id={x._id}> - <div - className={styles.entry} - key={x._id} - > - <UserIcon size={32} target={x} /> - <span>{x.username}</span> - </div> - //</LinkProfile> + <div onClick={() => openScreen({ id: 'profile', user_id: x._id })} + className={styles.entry} + key={x._id}> + <UserIcon size={32} target={x} /> + <span>{x.username}</span> + </div> ) ) )}