Refactor HomeScreen activity state and update UI labels

- Changed state management for next day's activity to use 'dayLabel' instead of 'dateStr'.
- Updated logic to determine the day label for next day's activity.
- Modified badge text in HomeScreen to reflect the new label and improved localization for today's activity.
This commit is contained in:
Mekan1206
2025-09-20 14:24:33 +05:00
parent fa0465ee1a
commit 2c7884b9ff
2 changed files with 11 additions and 6 deletions

View File

@@ -79,12 +79,12 @@ export default function Programs() {
return (
<View style={[styles.container, { backgroundColor: Colors[colorScheme].background, paddingTop: insets.top }]}>
<View style={styles.header}>
<Text style={[styles.title, { color: Colors[colorScheme].text }]}>Umrah Pilgrimage</Text>
<Text style={[styles.title, { color: Colors[colorScheme].text }]}>Respisaniýa</Text>
</View>
{isStale && (
<View style={styles.warningContainer}>
<Text style={styles.warningText}>Failed to fetch latest data. Showing cached activities.</Text>
<Text style={styles.warningText}>Soňky maglumatlary almak başartmady. Saklanan çäreler görkezilýär.</Text>
</View>
)}