mirror of
https://github.com/Radiquum/AniX.git
synced 2025-09-06 06:23:53 +05:00
anix/feat: add wathing now and collections of the week to discovery page
This commit is contained in:
parent
b25bb4d6e9
commit
05cb74b7f2
9 changed files with 74 additions and 32 deletions
|
@ -22,14 +22,7 @@ export const InterestingCarousel = () => {
|
|||
}
|
||||
);
|
||||
|
||||
if (error)
|
||||
return (
|
||||
<div className="flex flex-col justify-between w-full p-4 border border-red-200 rounded-md md:flex-row bg-red-50 dark:bg-red-700 dark:border-red-600">
|
||||
<div className="mb-4 md:mb-0 md:me-4">
|
||||
<p>Произошла ошибка загрузки интересных релизов</p>
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
if (error) return <></>;
|
||||
if (isLoading) return <></>;
|
||||
|
||||
return (
|
||||
|
@ -45,12 +38,6 @@ export const InterestingCarousel = () => {
|
|||
prevEl: ".swiper-button-prev",
|
||||
}}
|
||||
allowTouchMove={true}
|
||||
breakpoints={{
|
||||
1800: {
|
||||
initialSlide: 1,
|
||||
centeredSlides: true,
|
||||
},
|
||||
}}
|
||||
className={Styles.swiper}
|
||||
>
|
||||
{data.content.map((item) => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue