EventCarousel: Do not show placeholder if already has results
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
This commit is contained in:
parent
5d1921b2cc
commit
6fb8290444
|
@ -40,11 +40,11 @@ const EventCarousel: React.FC<IEventCarousel> = ({ statusIds, isLoading, emptyMe
|
||||||
setIndex(index % statusIds.size);
|
setIndex(index % statusIds.size);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
if (statusIds.size === 0) {
|
||||||
if (isLoading) {
|
if (isLoading) {
|
||||||
return <PlaceholderEventPreview />;
|
return <PlaceholderEventPreview />;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (statusIds.size === 0) {
|
|
||||||
return (
|
return (
|
||||||
<Card variant='rounded' size='lg'>
|
<Card variant='rounded' size='lg'>
|
||||||
{emptyMessage}
|
{emptyMessage}
|
||||||
|
|
Loading…
Reference in New Issue