From 6b6429a9e5a9030d1492f2c4b0b35f8a19fa6df7 Mon Sep 17 00:00:00 2001 From: Adrian Bonpin Date: Sun, 10 May 2026 01:51:44 +0800 Subject: [PATCH] refactor(manage): use shared ConfirmDialog in reports page --- .../manage/reports/reports-client.tsx | 39 ++++++------------- 1 file changed, 11 insertions(+), 28 deletions(-) diff --git a/app/(manage)/manage/reports/reports-client.tsx b/app/(manage)/manage/reports/reports-client.tsx index 409ed64..4850d93 100644 --- a/app/(manage)/manage/reports/reports-client.tsx +++ b/app/(manage)/manage/reports/reports-client.tsx @@ -11,6 +11,7 @@ import { ChevronRightIcon, FlagIcon, } from "lucide-react" +import { ConfirmDialog } from "@/components/ui/modal" interface Report { id: string @@ -443,34 +444,16 @@ export function ReportsClient() { {/* Confirmation Dialog */} {confirmReport && ( -
-
-

Confirm Review

-

- This will also remove the reported benchmark. Are you sure? -

-
- - -
-
-
+ setConfirmReport(null)} + onConfirm={() => handleUpdateStatus(confirmReport, "reviewed")} + title="Confirm Review" + message="This will also remove the reported benchmark. Are you sure?" + confirmLabel="Review" + variant="default" + loading={actionLoading[confirmReport.id]} + /> )} )