fix(content): update type field and conditional rendering for content handling

- Changed `type` field values from `image | video` to `meme | gif`.
- Updated conditional rendering in `content-card` component to match new `type` values.
This commit is contained in:
Mathis HERRIOT
2026-01-20 22:04:25 +01:00
parent 8483927823
commit 11a9bcf55e
2 changed files with 2 additions and 2 deletions

View File

@@ -95,7 +95,7 @@ export function ContentCard({ content }: ContentCardProps) {
</CardHeader>
<CardContent className="p-0 relative bg-zinc-100 dark:bg-zinc-900 aspect-square flex items-center justify-center">
<Link href={`/meme/${content.slug}`} className="w-full h-full relative">
{content.type === "image" ? (
{content.type === "meme" ? (
<Image
src={content.url}
alt={content.title}

View File

@@ -7,7 +7,7 @@ export interface Content {
description?: string;
url: string;
thumbnailUrl?: string;
type: "image" | "video";
type: "meme" | "gif";
mimeType: string;
size: number;
width?: number;