Compare commits

..

2 commits

Author SHA1 Message Date
Declan Chidlow
6b20bbac98
Merge ffee147aed into 0f0808aa56 2024-06-23 12:23:57 +01:00
Paul Makles
0f0808aa56
feat: add report button to user profiles 2024-06-23 12:23:42 +01:00

View file

@ -6,6 +6,7 @@ import {
UserX,
Group,
InfoCircle,
Flag,
} from "@styled-icons/boxicons-solid";
import { observer } from "mobx-react-lite";
import { Link, useHistory } from "react-router-dom";
@ -246,6 +247,24 @@ export const UserProfile = observer(
<UserX size={28} />
</IconButton>
)}
{!user.bot && flags != 2 && flags != 4 && (
<Localizer>
<Tooltip
content={
<Text id="app.context_menu.report_user" />
}>
<IconButton
onClick={() =>
modalController.push({
type: "report",
target: user,
})
}>
<Flag size={28} />
</IconButton>
</Tooltip>
</Localizer>
)}
</div>
{badges > 0 && (
<div