Fix PerwerdeScreen: use GradientHeader, remove manual header

This commit is contained in:
2026-01-17 04:17:26 +03:00
parent 4e4e42fd65
commit 82ff92a766
2 changed files with 10 additions and 14 deletions
+10 -2
View File
@@ -1,6 +1,7 @@
import React from 'react';
import { createStackNavigator } from '@react-navigation/stack';
import { SimpleHeader } from '../components/navigation/SharedHeader';
import { SimpleHeader, GradientHeader } from '../components/navigation/SharedHeader';
import { KurdistanColors } from '../theme/colors';
// Screens
import DashboardScreen from '../screens/DashboardScreen';
@@ -88,7 +89,14 @@ const HomeStackNavigator: React.FC = () => {
<Stack.Screen name="Identity" component={IdentityScreen} options={{ headerTitle: 'Nasname' }} />
<Stack.Screen name="Forum" component={ForumScreen} options={{ headerTitle: 'Forum' }} />
<Stack.Screen name="KurdMedia" component={KurdMediaScreen} options={{ headerTitle: 'KurdMedia' }} />
<Stack.Screen name="Perwerde" component={PerwerdeScreen} options={{ headerTitle: 'Perwerde' }} />
<Stack.Screen
name="Perwerde"
component={PerwerdeScreen}
options={{
headerTitle: 'Perwerde',
header: (props) => <GradientHeader {...props} subtitle="Platforma Perwerdehiya Dijîtal" gradientColors={[KurdistanColors.zer, '#F59E0B']} />
}}
/>
<Stack.Screen name="Bank" component={BankScreen} options={{ headerTitle: 'Bank' }} />
<Stack.Screen name="Assembly" component={AssemblyScreen} options={{ headerTitle: 'Meclîs' }} />
<Stack.Screen name="Justice" component={JusticeScreen} options={{ headerTitle: 'Dadwerî' }} />
-12
View File
@@ -362,18 +362,6 @@ const PerwerdeScreen: React.FC = () => {
<SafeAreaView style={styles.container}>
<StatusBar barStyle="light-content" />
{/* Header */}
<LinearGradient
colors={[KurdistanColors.zer, '#F59E0B']}
start={{ x: 0, y: 0 }}
end={{ x: 1, y: 1 }}
style={styles.header}
>
<View style={styles.headerContent}>
<Text style={styles.headerTitle}>Perwerde</Text>
<Text style={styles.headerSubtitle}>Platforma Perwerdehiya Dijîtal</Text>
</View>
</LinearGradient>
{/* Score Card */}
<View style={styles.scoreCard}>