From 0f0808aa5637be5475f28e09f8f4d2617b6df2ae Mon Sep 17 00:00:00 2001 From: Paul Makles Date: Sun, 23 Jun 2024 12:23:42 +0100 Subject: [PATCH] feat: add report button to user profiles --- .../modals/components/legacy/UserProfile.tsx | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/src/controllers/modals/components/legacy/UserProfile.tsx b/src/controllers/modals/components/legacy/UserProfile.tsx index ea142a34f..dd73d897d 100644 --- a/src/controllers/modals/components/legacy/UserProfile.tsx +++ b/src/controllers/modals/components/legacy/UserProfile.tsx @@ -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( )} + {!user.bot && flags != 2 && flags != 4 && ( + + + }> + + modalController.push({ + type: "report", + target: user, + }) + }> + + + + + )} {badges > 0 && (