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:
@@ -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}
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user