feat: display reporter and content details in admin reports table
- Added "Signalé par" column to show reporter ID. - Displayed content links or "Tag" for reported items.
This commit is contained in:
@@ -103,6 +103,7 @@ export default function AdminReportsPage() {
|
|||||||
<Table>
|
<Table>
|
||||||
<TableHeader>
|
<TableHeader>
|
||||||
<TableRow>
|
<TableRow>
|
||||||
|
<TableHead>Signalé par</TableHead>
|
||||||
<TableHead>Raison</TableHead>
|
<TableHead>Raison</TableHead>
|
||||||
<TableHead>Description</TableHead>
|
<TableHead>Description</TableHead>
|
||||||
<TableHead>Statut</TableHead>
|
<TableHead>Statut</TableHead>
|
||||||
@@ -126,6 +127,21 @@ export default function AdminReportsPage() {
|
|||||||
) : (
|
) : (
|
||||||
reports.map((report) => (
|
reports.map((report) => (
|
||||||
<TableRow key={report.uuid}>
|
<TableRow key={report.uuid}>
|
||||||
|
<TableCell>
|
||||||
|
{report.reporterId.substring(0, 8)}...
|
||||||
|
</TableCell>
|
||||||
|
<TableCell>
|
||||||
|
{report.contentId ? (
|
||||||
|
<Link
|
||||||
|
href={`/meme/${report.contentId}`}
|
||||||
|
className="text-primary hover:underline"
|
||||||
|
>
|
||||||
|
Contenu
|
||||||
|
</Link>
|
||||||
|
) : (
|
||||||
|
"Tag"
|
||||||
|
)}
|
||||||
|
</TableCell>
|
||||||
<TableCell className="font-medium capitalize">
|
<TableCell className="font-medium capitalize">
|
||||||
{report.reason}
|
{report.reason}
|
||||||
</TableCell>
|
</TableCell>
|
||||||
|
|||||||
Reference in New Issue
Block a user