diff --git a/frontend/src/components/content-card.tsx b/frontend/src/components/content-card.tsx index a64a2e6..cac2a3b 100644 --- a/frontend/src/components/content-card.tsx +++ b/frontend/src/components/content-card.tsx @@ -100,7 +100,9 @@ export function ContentCard({ content, onUpdate }: ContentCardProps) { - {content.author.username[0].toUpperCase()} + + {content.author.username[0].toUpperCase()} + - - - {content.mimeType.startsWith("image/") ? ( - - ) : ( - - )} - - - - - - - - {likesCount} - - - - {content.views} - - - - - - - Utiliser - - - - - {content.title} - - {content.tags.slice(0, 3).map((tag, _i) => ( - + + {content.mimeType.startsWith("image/") ? ( + + ) : ( + + )} + + + + + + - #{typeof tag === "string" ? tag : tag.name} - - ))} + + {likesCount} + + + + {content.views} + + + + + + + Utiliser + - - - - onUpdate?.()} - /> + + + {content.title} + + {content.tags.slice(0, 3).map((tag, _i) => ( + + #{typeof tag === "string" ? tag : tag.name} + + ))} + + + + + onUpdate?.()} + /> > ); }