Refactor FeatureCard component to include image and badge text props. Update HomeScreen to display a new FeatureCard with localized title and description, removing previous cards for a cleaner layout.

This commit is contained in:
2025-08-17 22:26:10 +05:00
parent 68aa0cd6fa
commit 37aef1adc1
2 changed files with 17 additions and 24 deletions

View File

@@ -62,24 +62,12 @@ export default function HomeScreen() {
<ScrollView>
<View style={styles.innerContainer}>
<FeatureCard
isNew
title={i18n.t('yourJourneyToHajj')}
description={i18n.t('hajjEssentials')}
badgeText="07:00"
title="Aýşe metjidi"
description="Oteldan ugraýar"
image={require('@/assets/images/splash-icon.png')}
/>
<View style={styles.cardRow}>
<View style={{ flex: 1, marginRight: 10 }}>
<FeatureCard
title={i18n.t('umrah')}
description={i18n.t('bookPermit')}
/>
</View>
<View style={{ flex: 1, marginLeft: 10 }}>
<FeatureCard
title={i18n.t('nobleRawdah')}
description={i18n.t('bookPermit')}
/>
</View>
</View>
<PrayerTimeCard />
<ServicesGrid />
</View>