mirror of
https://github.com/pezkuwichain/pwap.git
synced 2026-07-23 14:15:46 +00:00
Fix IdentityScreen: use GradientHeader, remove manual header
This commit is contained in:
@@ -86,7 +86,14 @@ const HomeStackNavigator: React.FC = () => {
|
|||||||
<Stack.Screen name="Vote" component={VoteScreen} options={{ headerTitle: 'Deng' }} />
|
<Stack.Screen name="Vote" component={VoteScreen} options={{ headerTitle: 'Deng' }} />
|
||||||
<Stack.Screen name="Validators" component={ValidatorsScreen} options={{ headerTitle: 'Validators' }} />
|
<Stack.Screen name="Validators" component={ValidatorsScreen} options={{ headerTitle: 'Validators' }} />
|
||||||
<Stack.Screen name="Proposals" component={ProposalsScreen} options={{ headerTitle: 'Pêşniyar' }} />
|
<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="Forum" component={ForumScreen} options={{ headerTitle: 'Forum' }} />
|
||||||
<Stack.Screen name="KurdMedia" component={KurdMediaScreen} options={{ headerTitle: 'KurdMedia' }} />
|
<Stack.Screen name="KurdMedia" component={KurdMediaScreen} options={{ headerTitle: 'KurdMedia' }} />
|
||||||
<Stack.Screen
|
<Stack.Screen
|
||||||
|
|||||||
@@ -193,31 +193,6 @@ const IdentityScreen: React.FC = () => {
|
|||||||
<SafeAreaView style={styles.container}>
|
<SafeAreaView style={styles.container}>
|
||||||
<StatusBar barStyle="light-content" />
|
<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
|
<ScrollView
|
||||||
style={styles.content}
|
style={styles.content}
|
||||||
|
|||||||
Reference in New Issue
Block a user