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";
@@ -47,14 +48,14 @@ export function LeagueModal({
>
{/* 左侧图标 */}
<View style={[styles.iconContainer, { backgroundColor: iconBg }]}>
{league.logo ? (
{league.logo && league.logo.trim() !== "" && !league.logo.includes("placehold") ? (
<Image
source={{ uri: league.logo }}
style={styles.leagueLogo}
contentFit="contain"
/>
) : (
<IconSymbol name="trophy-outline" size={24} color={text} />
<EmptyPlaceholder type="league" size={24} />
)}
</View>