From 11cc68cddcd543e7fa51f7b4950f40117aca099d Mon Sep 17 00:00:00 2001 From: GitHub Copilot Date: Thu, 23 Apr 2026 20:07:36 +0100 Subject: [PATCH] Clean up SubscriptionList component: remove unused FlashList import and duplicate code --- src/components/home/SubscriptionList.tsx | 98 ------------------------ 1 file changed, 98 deletions(-) diff --git a/src/components/home/SubscriptionList.tsx b/src/components/home/SubscriptionList.tsx index 84dbe36e..ae4fd2a1 100644 --- a/src/components/home/SubscriptionList.tsx +++ b/src/components/home/SubscriptionList.tsx @@ -1,6 +1,5 @@ import React, { useCallback } from 'react'; import { View, Text, StyleSheet, TouchableOpacity } from 'react-native'; -import { FlashList } from '@shopify/flash-list'; import { colors, spacing, typography, borderRadius, shadows } from '../../utils/constants'; import { AnimatedSubscriptionCard } from '../subscription/AnimatedSubscriptionCard'; import { SubscriptionListSkeleton } from '../common/SkeletonLoader'; @@ -153,103 +152,6 @@ export const SubscriptionList: React.FC = React.memo(({ ); }); - const keyExtractor = useCallback((item: Subscription) => item.id, []); - - return ( - - {/* Upcoming Billing Section */} - {upcomingSubscriptions && upcomingSubscriptions.length > 0 && ( - - - Upcoming Billing - - - {upcomingSubscriptions.length} subscription - {upcomingSubscriptions.length !== 1 ? 's' : ''} due this week - - - {upcomingSubscriptions.slice(0, 3).map((subscription) => ( - - - {subscription.name} - - - {new Date(subscription.nextBillingDate).toLocaleDateString()} - - - ))} - - - )} - - {/* Main List Section */} - - - - Your Subscriptions - - {hasSubscriptions && ( - - {hasActiveFilters && ( - - {filteredCount} of {totalCount} - - )} - - {activeSubscriptions.length} subscription - {activeSubscriptions.length !== 1 ? 's' : ''} - - - )} - - - {hasSubscriptions ? ( - - - - ) : ( - - - 📱 - - - No subscriptions yet - - - Add your first subscription to start tracking your spending - - - Add Subscription - - - )} - - - ); -}); - const styles = StyleSheet.create({ section: { padding: spacing.lg,