add empty states
Some checks are pending
V3 Preview Deployment / Deploy-Preview (push) Waiting to run

This commit is contained in:
Kentai Radiquum 2025-04-04 06:04:23 +05:00
parent 0cd74983f3
commit 0730b7c7d4
Signed by: Radiquum
GPG key ID: 858E8EE696525EED
2 changed files with 19 additions and 14 deletions

View file

@ -56,12 +56,14 @@ export const ProfileActivityFriends = (props: { content: any }) => {
</SwiperSlide>
);
})}
<SwiperSlide style={{ width: "fit-content" }} className="px-2 py-4">
<Button>
<p className="text-lg">Все друзья</p>
<span className="w-8 h-8 iconify mdi--arrow-right dark:fill-white"></span>
</Button>
</SwiperSlide>
{props.content && props.content.length > 0 ?
<SwiperSlide style={{ width: "fit-content" }} className="px-2 py-4">
<Button>
<p className="text-lg">Все друзья</p>
<span className="w-8 h-8 iconify mdi--arrow-right dark:fill-white"></span>
</Button>
</SwiperSlide>
: <p className="text-lg">У пользователя нет друзей</p>}
</Swiper>
</div>
);