From cf26e4f2a2daa8423b478c1ece378f46494353f3 Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Thu, 28 Apr 2022 21:55:02 -0500 Subject: [PATCH] Report: show profile hover card --- .../features/admin/components/report.tsx | 22 ++++++++++++++----- 1 file changed, 17 insertions(+), 5 deletions(-) diff --git a/app/soapbox/features/admin/components/report.tsx b/app/soapbox/features/admin/components/report.tsx index b232d8c73..6d3da6009 100644 --- a/app/soapbox/features/admin/components/report.tsx +++ b/app/soapbox/features/admin/components/report.tsx @@ -6,6 +6,7 @@ import { closeReports } from 'soapbox/actions/admin'; import { deactivateUserModal, deleteUserModal } from 'soapbox/actions/moderation'; import snackbar from 'soapbox/actions/snackbar'; import Avatar from 'soapbox/components/avatar'; +import HoverRefWrapper from 'soapbox/components/hover_ref_wrapper'; import { Button, HStack } from 'soapbox/components/ui'; import DropdownMenu from 'soapbox/containers/dropdown_menu_container'; import Accordion from 'soapbox/features/ui/components/accordion'; @@ -74,16 +75,22 @@ const Report: React.FC = ({ report }) => { return (
- - - + + + + +

@{acct} }} + values={{ acct: ( + + @{acct} + + ) }} />

@@ -101,7 +108,12 @@ const Report: React.FC = ({ report }) => { {report.get('content', '').length > 0 && (
)} - @{reporterAcct} + + — + + @{reporterAcct} + +