fixed card numbers

This commit is contained in:
Lucas Oliveira 2023-11-16 22:55:01 -03:00
commit 8c8d46b570

View file

@ -175,7 +175,7 @@ export default function CollectionCardComponent({
<ShadTooltip content={data.name}> <ShadTooltip content={data.name}>
<div className="w-full truncate">{data.name}</div> <div className="w-full truncate">{data.name}</div>
</ShadTooltip> </ShadTooltip>
{data?.metadata && ( {data?.metadata !== undefined && (
<div className="flex gap-3"> <div className="flex gap-3">
{!data.is_component && ( {!data.is_component && (
<ShadTooltip content="Components"> <ShadTooltip content="Components">
@ -197,7 +197,7 @@ export default function CollectionCardComponent({
<ShadTooltip content="Downloads"> <ShadTooltip content="Downloads">
<span className="flex items-center gap-1.5 text-xs text-muted-foreground"> <span className="flex items-center gap-1.5 text-xs text-muted-foreground">
<IconComponent name="DownloadCloud" className="h-4 w-4" /> <IconComponent name="DownloadCloud" className="h-4 w-4" />
{data.downloads_count} {data.downloads_count ?? 0}
</span> </span>
</ShadTooltip> </ShadTooltip>
</div> </div>
@ -242,7 +242,7 @@ export default function CollectionCardComponent({
</Badge> </Badge>
))} ))}
</div> </div>
{data.liked_by_count && ( {data.liked_by_count != undefined && (
<div className="flex gap-0.5"> <div className="flex gap-0.5">
<ShadTooltip <ShadTooltip
content={authorized ? "Like" : "Please review your API key."} content={authorized ? "Like" : "Please review your API key."}