{/* Section Header */}
@@ -189,6 +239,7 @@ function PendingApprovalSection({ requests }: { requests: PendingApprovalRequest
}}
className="absolute top-2 right-2 z-10 p-1 text-gray-400 hover:text-blue-500 dark:hover:text-blue-400 transition-colors rounded-full hover:bg-gray-100 dark:hover:bg-gray-700"
title="View book details"
+ aria-label="View book details"
>
@@ -336,42 +387,12 @@ function PendingApprovalSection({ requests }: { requests: PendingApprovalRequest
{/* Action Buttons */}
-
-
-
-
-
+
handleApproveRequest(request.id)}
+ onSearch={() => setSearchModalRequestId(request.id)}
+ onDeny={() => handleDenyRequest(request.id)}
+ />
);
@@ -406,55 +427,26 @@ function PendingApprovalSection({ requests }: { requests: PendingApprovalRequest
onClose={() => { setDetailsAsin(null); setDetailsRequestId(null); }}
requestStatus="awaiting_approval"
requestedByUsername={detailsRequest?.user.plexUsername ?? null}
- adminActions={(() => {
- const isLoading = loadingStates[detailsRequestId] || false;
- return (
- <>
-