Fix WalletScreen: remove duplicate title, keep only network dropdown

This commit is contained in:
2026-01-17 03:51:06 +03:00
parent 6fd120a32f
commit ca3c9c667c
+6 -24
View File
@@ -654,9 +654,8 @@ const WalletScreen: React.FC = () => {
<SafeAreaView style={styles.container} testID="wallet-screen"> <SafeAreaView style={styles.container} testID="wallet-screen">
<StatusBar barStyle="dark-content" /> <StatusBar barStyle="dark-content" />
{/* Top Header */} {/* Network Selector Row */}
<View style={styles.topHeader} testID="wallet-top-header"> <View style={styles.networkRow} testID="wallet-top-header">
<Text style={styles.topHeaderTitle}>Cüzdan / Wallet</Text>
<TouchableOpacity onPress={() => setNetworkSelectorVisible(true)} testID="wallet-network-button"> <TouchableOpacity onPress={() => setNetworkSelectorVisible(true)} testID="wallet-network-button">
<Text style={styles.networkBadge}>🌐 {NETWORKS[currentNetwork].displayName}</Text> <Text style={styles.networkBadge}>🌐 {NETWORKS[currentNetwork].displayName}</Text>
</TouchableOpacity> </TouchableOpacity>
@@ -1293,30 +1292,13 @@ const styles = StyleSheet.create({
color: '#666', color: '#666',
}, },
// Top Header with Back Button // Network Selector Row
topHeader: { networkRow: {
flexDirection: 'row', flexDirection: 'row',
justifyContent: 'space-between', justifyContent: 'flex-end',
alignItems: 'center', alignItems: 'center',
paddingHorizontal: 16, paddingHorizontal: 16,
paddingVertical: 12, paddingVertical: 8,
backgroundColor: '#FFFFFF',
borderBottomWidth: 1,
borderBottomColor: '#E5E5E5',
},
backButton: {
paddingVertical: 4,
paddingRight: 8,
},
backButtonText: {
fontSize: 16,
color: KurdistanColors.kesk,
fontWeight: '500',
},
topHeaderTitle: {
fontSize: 18,
fontWeight: '600',
color: '#333',
}, },
// Header Styles (New Design) // Header Styles (New Design)