clear last tickets

This commit is contained in:
Thomas Demirdjian
2025-11-25 14:58:06 +01:00
parent 72852ad92b
commit ee9cc5dccd
31 changed files with 1009 additions and 531 deletions
@@ -9,9 +9,14 @@ const PlaybacksCard = ({
rank = 1,
title = "Sans titre",
artist = "MusicLand",
thumbnailUrl = null,
coverUrl = null,
onPress = () => null,
}) => {
const resolveUri = (value) =>
typeof value === "string" && value.trim().length > 0 ? value : null;
const imageUri = resolveUri(thumbnailUrl) ?? resolveUri(coverUrl);
return (
<Pressable onPress={onPress}>
<BlurView
@@ -45,7 +50,7 @@ const PlaybacksCard = ({
{rank}
</Text>
<Image
source={coverUrl ? { uri: coverUrl } : img.placeholder3}
source={imageUri ? { uri: imageUri } : img.placeholder3}
style={{ width: 67, height: 108, borderRadius: 16 }}
/>
<View>