mirror of
https://github.com/revoltchat/revite.git
synced 2024-12-23 22:22:07 -05:00
Fix profile links from user profiles.
This commit is contained in:
parent
73c61cd7f8
commit
b0332c882b
1 changed files with 7 additions and 10 deletions
|
@ -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>
|
||||
)
|
||||
)
|
||||
)}
|
||||
|
|
Loading…
Reference in a new issue