From 70a4249e41d5a3241beb853b071039454ccecb62 Mon Sep 17 00:00:00 2001 From: Mathis HERRIOT <197931332+0x485254@users.noreply.github.com> Date: Wed, 21 Jan 2026 09:41:11 +0100 Subject: [PATCH] fix(content): update conditional checks to use `mimeType` for content rendering - Replaced `type` field checks with `mimeType.startsWith("image/")` for improved accuracy in `content-card` and admin content page components. - Adjusted `CardContent` background color for better visual consistency. --- frontend/src/app/(dashboard)/admin/contents/page.tsx | 2 +- frontend/src/components/content-card.tsx | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/frontend/src/app/(dashboard)/admin/contents/page.tsx b/frontend/src/app/(dashboard)/admin/contents/page.tsx index d678d23..94b97af 100644 --- a/frontend/src/app/(dashboard)/admin/contents/page.tsx +++ b/frontend/src/app/(dashboard)/admin/contents/page.tsx @@ -98,7 +98,7 @@ export default function AdminContentsPage() {
- {content.type === "meme" ? ( + {content.mimeType.startsWith("image/") ? ( ) : (