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:
@@ -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>
|
||||
)}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user