empty placeholder
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
import { EmptyPlaceholder } from "@/components/empty-placeholder";
|
||||
import { ThemedText } from "@/components/themed-text";
|
||||
import { IconSymbol } from "@/components/ui/icon-symbol";
|
||||
import { Colors } from "@/constants/theme";
|
||||
@@ -467,13 +468,16 @@ export function MatchCard({
|
||||
<View style={styles.contentRow}>
|
||||
<View style={styles.teamInfo}>
|
||||
<View style={styles.teamLogoPlaceholder}>
|
||||
<Image
|
||||
source={{
|
||||
uri: homeLogo,
|
||||
}}
|
||||
style={styles.teamLogo}
|
||||
contentFit="contain"
|
||||
/>
|
||||
{homeLogo && homeLogo.trim() !== "" && !homeLogo.includes("placehold") ? (
|
||||
<Image
|
||||
source={{ uri: homeLogo }}
|
||||
style={styles.teamLogo}
|
||||
contentFit="contain"
|
||||
onError={() => {}}
|
||||
/>
|
||||
) : (
|
||||
<EmptyPlaceholder type="team" size={18} />
|
||||
)}
|
||||
</View>
|
||||
<ThemedText
|
||||
type="defaultSemiBold"
|
||||
@@ -492,13 +496,16 @@ export function MatchCard({
|
||||
<View style={styles.contentRow}>
|
||||
<View style={styles.teamInfo}>
|
||||
<View style={styles.teamLogoPlaceholder}>
|
||||
<Image
|
||||
source={{
|
||||
uri: awayLogo,
|
||||
}}
|
||||
style={styles.teamLogo}
|
||||
contentFit="contain"
|
||||
/>
|
||||
{awayLogo && awayLogo.trim() !== "" && !awayLogo.includes("placehold") ? (
|
||||
<Image
|
||||
source={{ uri: awayLogo }}
|
||||
style={styles.teamLogo}
|
||||
contentFit="contain"
|
||||
onError={() => {}}
|
||||
/>
|
||||
) : (
|
||||
<EmptyPlaceholder type="team" size={18} />
|
||||
)}
|
||||
</View>
|
||||
<ThemedText
|
||||
type="defaultSemiBold"
|
||||
|
||||
Reference in New Issue
Block a user