mirror of
https://github.com/stoatchat/for-legacy-web.git
synced 2026-03-06 17:11:55 +00:00
Fix and prettier incoming changes from PR #119.
Cherry pick PR #130: don't show add friend button on banned / deleted accounts. Also account for this in context menu.
This commit is contained in:
@@ -196,6 +196,8 @@ export const UserProfile = observer(
|
||||
</IconButton>
|
||||
)}
|
||||
{!user.bot &&
|
||||
flags != 2 &&
|
||||
flags != 4 &&
|
||||
(user.relationship ===
|
||||
RelationshipStatus.Incoming ||
|
||||
user.relationship ===
|
||||
@@ -315,10 +317,14 @@ export const UserProfile = observer(
|
||||
content={
|
||||
<Text id="app.special.popovers.user_profile.badges.translator" />
|
||||
}>
|
||||
<img src="/assets/badges/translator.svg"
|
||||
onClick={() => {
|
||||
window.open("https://weblate.insrt.uk/projects/revolt/web-app/", "_blank")
|
||||
}}
|
||||
<img
|
||||
src="/assets/badges/translator.svg"
|
||||
onClick={() => {
|
||||
window.open(
|
||||
"https://weblate.insrt.uk/projects/revolt/web-app/",
|
||||
"_blank",
|
||||
);
|
||||
}}
|
||||
/>
|
||||
</Tooltip>
|
||||
) : (
|
||||
@@ -343,7 +349,10 @@ export const UserProfile = observer(
|
||||
size={32}
|
||||
color="#efab44"
|
||||
onClick={() => {
|
||||
window.open("https://insrt.uk/donate", "_blank")
|
||||
window.open(
|
||||
"https://insrt.uk/donate",
|
||||
"_blank",
|
||||
);
|
||||
}}
|
||||
/>
|
||||
</Tooltip>
|
||||
|
||||
Reference in New Issue
Block a user