mirror of
https://github.com/pezkuwichain/pwap.git
synced 2026-04-22 06:47:55 +00:00
Fix PerwerdeScreen: use GradientHeader, remove manual header
This commit is contained in:
@@ -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î' }} />
|
||||
|
||||
@@ -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}>
|
||||
|
||||
Reference in New Issue
Block a user