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