empty placeholder

This commit is contained in:
xianyi
2026-01-23 15:38:03 +08:00
parent a7b77963fd
commit c9516b4899
22 changed files with 164 additions and 111 deletions

View File

@@ -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";
@@ -122,12 +123,14 @@ export function UpcomingMatchCard({
<View style={styles.teamsContainer}>
<View style={styles.team}>
{match.homeTeamLogo && (
{match.homeTeamLogo && match.homeTeamLogo.trim() !== "" && !match.homeTeamLogo.includes("placehold") ? (
<Image
source={{ uri: match.homeTeamLogo }}
style={styles.teamLogo}
contentFit="contain"
/>
) : (
<EmptyPlaceholder type="team" size={24} />
)}
<ThemedText
type="defaultSemiBold"
@@ -143,12 +146,14 @@ export function UpcomingMatchCard({
</View>
<View style={styles.team}>
{match.awayTeamLogo && (
{match.awayTeamLogo && match.awayTeamLogo.trim() !== "" && !match.awayTeamLogo.includes("placehold") ? (
<Image
source={{ uri: match.awayTeamLogo }}
style={styles.teamLogo}
contentFit="contain"
/>
) : (
<EmptyPlaceholder type="team" size={24} />
)}
<ThemedText
type="defaultSemiBold"