mirror of
https://github.com/antebudimir/feishin.git
synced 2026-01-01 10:23:33 +00:00
don't show song count if not present for home carousel
This commit is contained in:
parent
3980c8ea97
commit
773f349b66
1 changed files with 8 additions and 5 deletions
|
|
@ -207,11 +207,14 @@ export const FeatureCarousel = ({ data }: FeatureCarouselProps) => {
|
||||||
</Badge>
|
</Badge>
|
||||||
))}
|
))}
|
||||||
<Badge size="lg">{currentItem?.releaseYear}</Badge>
|
<Badge size="lg">{currentItem?.releaseYear}</Badge>
|
||||||
<Badge size="lg">
|
{currentItem?.songCount !== null &&
|
||||||
{t('entity.trackWithCount', {
|
currentItem?.songCount !== undefined && (
|
||||||
count: currentItem?.songCount || 0,
|
<Badge size="lg">
|
||||||
})}
|
{t('entity.trackWithCount', {
|
||||||
</Badge>
|
count: currentItem?.songCount || 0,
|
||||||
|
})}
|
||||||
|
</Badge>
|
||||||
|
)}
|
||||||
</Group>
|
</Group>
|
||||||
<Group position="apart">
|
<Group position="apart">
|
||||||
<Button
|
<Button
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue