feat: add logged in user favorite and owned collection fetching

This commit is contained in:
Kentai Radiquum 2024-08-13 14:20:28 +05:00
parent 9f3e1b951a
commit b6878a0386
Signed by: Radiquum
GPG key ID: 858E8EE696525EED
6 changed files with 84 additions and 151 deletions

View file

@ -57,6 +57,13 @@ export const CollectionCourusel = (props: {
<div className="m-4">
<div className="swiper">
<div className="swiper-wrapper">
{props.isMyCollections && (
<div className="swiper-slide" style={{ width: "fit-content" }}>
<div className="xl:w-[600px] sm:w-[400px] w-[80vw] aspect-video">
<AddCollectionLink />
</div>
</div>
)}
{props.content.map((collection) => {
return (
<div
@ -70,13 +77,6 @@ export const CollectionCourusel = (props: {
</div>
);
})}
{props.isMyCollections && (
<div className="swiper-slide" style={{ width: "fit-content" }}>
<div className="xl:w-[600px] sm:w-[400px] w-[80vw] aspect-video">
<AddCollectionLink />
</div>
</div>
)}
</div>
<div
className={`swiper-button-prev ${Styles["swiper-button"]} after:iconify after:material-symbols--chevron-left aspect-square bg-black bg-opacity-25 backdrop-blur rounded-full after:bg-white`}