diff --git a/src/components/report/ReportDetailModal.tsx b/src/components/report/ReportDetailModal.tsx index 10013c6..9099c5a 100644 --- a/src/components/report/ReportDetailModal.tsx +++ b/src/components/report/ReportDetailModal.tsx @@ -110,7 +110,7 @@ export function ReportDetailModal({ report, isOpen, onClose, onVerify, onDispute {/* Modal */}
-
+
{/* Close Button */}
{/* Content */} -
+
{/* Header with Verification Status */}
-

Litter Report

-

+

Litter Report

+

Reported {format(new Date(report.createdAt), 'PPP')} at {format(new Date(report.createdAt), 'p')}

@@ -174,7 +174,7 @@ export function ReportDetailModal({ report, isOpen, onClose, onVerify, onDispute
{/* Reporter Info */} -
+
{report.user.avatarUrl ? ( {/* Litter Details */} -
-
+
+

Litter Type

{getLitterTypeLabel(report.litterType)}

-
+

Quantity

{getQuantityLabel(report.quantity)}

{/* Location */} -
+

Location

@@ -220,7 +220,7 @@ export function ReportDetailModal({ report, isOpen, onClose, onVerify, onDispute {/* Description */} {report.description && ( -

+

Description

{report.description}

@@ -228,7 +228,7 @@ export function ReportDetailModal({ report, isOpen, onClose, onVerify, onDispute {/* Photo Timestamp */} {report.photoTimestamp && ( -
+

Photo Taken

{format(new Date(report.photoTimestamp), 'PPP')} at {format(new Date(report.photoTimestamp), 'p')} @@ -238,7 +238,7 @@ export function ReportDetailModal({ report, isOpen, onClose, onVerify, onDispute {/* Environmental Concerns */} {report.environmentalConcerns && report.environmentalConcerns.length > 0 && ( -

+

Environmental Concerns

{report.environmentalConcerns.map((concern) => ( @@ -265,7 +265,7 @@ export function ReportDetailModal({ report, isOpen, onClose, onVerify, onDispute )} {/* Verification Stats */} -
+

Verification Status

{report.verifications && report.verifications.length > 0 && ( @@ -322,10 +322,10 @@ export function ReportDetailModal({ report, isOpen, onClose, onVerify, onDispute {/* Audit Log */} {showAuditLog && report.verifications && report.verifications.length > 0 && ( -
-
-

Verification History

-
+
+
+

Verification History

+
{report.verifications .sort((a, b) => new Date(b.createdAt).getTime() - new Date(a.createdAt).getTime()) .map((verification) => ( @@ -376,8 +376,8 @@ export function ReportDetailModal({ report, isOpen, onClose, onVerify, onDispute {/* Action Buttons */} {(onVerify || onDispute) && ( -
-

+

+

Help maintain data quality by verifying or disputing this report.