clear last tickets
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user