Fix IdentityScreen: use GradientHeader, remove manual header

This commit is contained in:
2026-01-17 04:18:09 +03:00
parent 43d5422611
commit 07e2d2374b
2 changed files with 8 additions and 26 deletions
+8 -1
View File
@@ -86,7 +86,14 @@ const HomeStackNavigator: React.FC = () => {
<Stack.Screen name="Vote" component={VoteScreen} options={{ headerTitle: 'Deng' }} />
<Stack.Screen name="Validators" component={ValidatorsScreen} options={{ headerTitle: 'Validators' }} />
<Stack.Screen name="Proposals" component={ProposalsScreen} options={{ headerTitle: 'Pêşniyar' }} />
<Stack.Screen name="Identity" component={IdentityScreen} options={{ headerTitle: 'Nasname' }} />
<Stack.Screen
name="Identity"
component={IdentityScreen}
options={{
headerTitle: '🆔 Nasnameya Dîjîtal',
header: (props) => <GradientHeader {...props} subtitle="Digital Identity" gradientColors={[KurdistanColors.kesk, '#006633']} />
}}
/>
<Stack.Screen name="Forum" component={ForumScreen} options={{ headerTitle: 'Forum' }} />
<Stack.Screen name="KurdMedia" component={KurdMediaScreen} options={{ headerTitle: 'KurdMedia' }} />
<Stack.Screen
-25
View File
@@ -193,31 +193,6 @@ const IdentityScreen: React.FC = () => {
<SafeAreaView style={styles.container}>
<StatusBar barStyle="light-content" />
{/* Header */}
<LinearGradient
colors={[KurdistanColors.kesk, '#006633']}
style={styles.header}
>
<View style={styles.headerContent}>
<Text style={styles.headerIcon}>🆔</Text>
<Text style={styles.headerTitle}>Nasnameya Dîjîtal</Text>
<Text style={styles.headerSubtitle}>Digital Identity</Text>
</View>
{/* Kurdistan Sun decoration */}
<View style={styles.sunDecoration}>
<View style={styles.sunCenter} />
{[...Array(21)].map((_, i) => (
<View
key={i}
style={[
styles.sunRay,
{ transform: [{ rotate: `${i * (360 / 21)}deg` }] }
]}
/>
))}
</View>
</LinearGradient>
<ScrollView
style={styles.content}