fix: activefilter live condition

This commit is contained in:
Cron1cle
2025-10-15 13:57:06 +02:00
parent a7a3d103f0
commit 38ac309925

View File

@@ -6,10 +6,10 @@ import { router } from "expo-router";
import React from "react";
import {
ActivityIndicator,
Image,
Text,
TouchableOpacity,
View,
Image,
} from "react-native";
import {
GestureHandlerRootView,
@@ -108,21 +108,22 @@ export default function HomeScreen() {
<Text>ALLE</Text>
</TouchableOpacity>
)}
<TouchableOpacity
style={{
padding: 2,
height: 50,
width: 50,
alignItems: "center",
justifyContent: "center",
backgroundColor: "hsl(221, 39%, 80%)",
borderRadius: 50,
}}
onPress={() => handleFilter("live")}
>
<Text>LIVE</Text>
</TouchableOpacity>
{activeFilter !== "live" && (
<TouchableOpacity
style={{
padding: 2,
height: 50,
width: 50,
alignItems: "center",
justifyContent: "center",
backgroundColor: "hsl(221, 39%, 80%)",
borderRadius: 50,
}}
onPress={() => handleFilter("live")}
>
<Text>LIVE</Text>
</TouchableOpacity>
)}
{uniqueStreamingServices.map((serviceName) => {
const streamingService =