minor fix
This commit is contained in:
parent
7ca574b76f
commit
c85c3bb0d7
|
@ -62,11 +62,6 @@ export default async function getTags({
|
|||
},
|
||||
},
|
||||
},
|
||||
include: {
|
||||
_count: {
|
||||
select: { links: true },
|
||||
},
|
||||
},
|
||||
});
|
||||
|
||||
return { response: tags, status: 200 };
|
||||
|
|
|
@ -252,11 +252,7 @@ export default function PublicCollections() {
|
|||
: "bg-neutral-content/20 hover:bg-neutral/20"
|
||||
} duration-100 py-1 px-2 cursor-pointer flex items-center gap-2 rounded-md h-8`}
|
||||
>
|
||||
<i className="text-primary bi-hash text-2xl drop-shadow"></i>
|
||||
<p className="truncate pr-7">{t("all_links")}</p>
|
||||
<div className="text-neutral drop-shadow text-xs">
|
||||
{collection._count?.links}
|
||||
</div>
|
||||
<p className="truncate px-3">{t("all_links")}</p>
|
||||
</div>
|
||||
</button>
|
||||
{tags
|
||||
|
@ -279,10 +275,7 @@ export default function PublicCollections() {
|
|||
} duration-100 py-1 px-2 cursor-pointer flex items-center gap-2 rounded-md h-8`}
|
||||
>
|
||||
<i className="bi-hash text-2xl text-primary drop-shadow"></i>
|
||||
<p className="truncate pr-7">{e}</p>
|
||||
<div className="drop-shadow text-neutral text-xs">
|
||||
{tags.filter((t) => t.name === e)[0]._count.links}
|
||||
</div>
|
||||
<p className="truncate pr-3">{e}</p>
|
||||
</div>
|
||||
</button>
|
||||
);
|
||||
|
|
Ŝarĝante…
Reference in New Issue