chore: update
This commit is contained in:
@@ -257,17 +257,19 @@ export default function OrderHistoryScreen() {
|
||||
</View>
|
||||
) : (
|
||||
<>
|
||||
{poolNames.map((name, i) => (
|
||||
{poolNames.map((name, i) => {
|
||||
const poolIconNames = ["leaf-outline", "medical-outline", "flask-outline", "color-fill-outline", "star-outline"] as const;
|
||||
const poolIconColors = [colors.categoryWeedHash, "#e879f9", "#fb923c", "#38bdf8", colors.accent];
|
||||
const icon = poolIconNames[i] ?? "star-outline";
|
||||
const color = poolIconColors[i] ?? colors.accent;
|
||||
return (
|
||||
<View key={i} style={[styles.statCard, shadows.sm]}>
|
||||
<Ionicons
|
||||
name={i === 0 ? "leaf-outline" : i === 1 ? "flash-outline" : "star-outline"}
|
||||
size={24}
|
||||
color={i === 0 ? colors.categoryWeedHash : i === 1 ? colors.info : colors.accent}
|
||||
/>
|
||||
<Ionicons name={icon} size={24} color={color} />
|
||||
<Text style={styles.statValue}>{poolPoints[i] || 0}</Text>
|
||||
<Text style={styles.statLabel}>Pts {name}</Text>
|
||||
</View>
|
||||
))}
|
||||
);
|
||||
})}
|
||||
{totalPoints > 0 && (
|
||||
<View style={[styles.statCard, shadows.sm]}>
|
||||
<Ionicons name="trophy-outline" size={24} color={colors.warning} />
|
||||
|
||||
Reference in New Issue
Block a user