Fix LaunchpadScreen: remove duplicate header, move add button

This commit is contained in:
2026-01-17 04:11:46 +03:00
parent 2cb7a0a0e6
commit 4e4e42fd65
2 changed files with 11 additions and 32 deletions
+1 -1
View File
@@ -80,7 +80,7 @@ const HomeStackNavigator: React.FC = () => {
<Stack.Screen name="P2P" component={P2PScreen} options={{ headerTitle: 'P2P Bazirganî' }} /> <Stack.Screen name="P2P" component={P2PScreen} options={{ headerTitle: 'P2P Bazirganî' }} />
<Stack.Screen name="B2B" component={B2BScreen} options={{ headerTitle: 'B2B Bazirganî' }} /> <Stack.Screen name="B2B" component={B2BScreen} options={{ headerTitle: 'B2B Bazirganî' }} />
<Stack.Screen name="TaxZekat" component={TaxZekatScreen} options={{ headerTitle: 'Bac & Zekat' }} /> <Stack.Screen name="TaxZekat" component={TaxZekatScreen} options={{ headerTitle: 'Bac & Zekat' }} />
<Stack.Screen name="Launchpad" component={LaunchpadScreen} options={{ headerTitle: 'Launchpad' }} /> <Stack.Screen name="Launchpad" component={LaunchpadScreen} options={{ headerTitle: '🚀 Launchpad' }} />
<Stack.Screen name="President" component={PresidentScreen} options={{ headerTitle: 'Serok' }} /> <Stack.Screen name="President" component={PresidentScreen} options={{ headerTitle: 'Serok' }} />
<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' }} />
+10 -31
View File
@@ -529,14 +529,10 @@ const LaunchpadScreen: React.FC = () => {
<View style={styles.container}> <View style={styles.container}>
<StatusBar barStyle="dark-content" backgroundColor="#F8F9FA" /> <StatusBar barStyle="dark-content" backgroundColor="#F8F9FA" />
{/* Action Bar */} {/* Add Button Row */}
<View style={styles.header}> <View style={styles.actionRow}>
<View style={styles.headerContent}>
<Text style={styles.headerTitle}>🚀 Launchpad</Text>
<Text style={styles.headerSubtitle}>Multi-Presale Platform</Text>
</View>
<TouchableOpacity onPress={handleNewProject} style={styles.addButton}> <TouchableOpacity onPress={handleNewProject} style={styles.addButton}>
<Text style={styles.addIcon}>+</Text> <Text style={styles.addIcon}>+ Projeya </Text>
</TouchableOpacity> </TouchableOpacity>
</View> </View>
@@ -762,41 +758,24 @@ const styles = StyleSheet.create({
fontSize: 14, fontSize: 14,
color: '#666', color: '#666',
}, },
header: { actionRow: {
flexDirection: 'row', flexDirection: 'row',
alignItems: 'center', justifyContent: 'flex-end',
paddingHorizontal: 16, paddingHorizontal: 16,
paddingVertical: 12, paddingVertical: 8,
backgroundColor: KurdistanColors.spi,
borderBottomWidth: 1,
borderBottomColor: '#E0E0E0',
},
headerContent: {
flex: 1,
marginLeft: 12,
},
headerTitle: {
fontSize: 20,
fontWeight: 'bold',
color: KurdistanColors.reş,
},
headerSubtitle: {
fontSize: 12,
color: '#666',
marginTop: 2,
}, },
addButton: { addButton: {
width: 40, paddingHorizontal: 16,
height: 40, paddingVertical: 10,
borderRadius: 20, borderRadius: 20,
backgroundColor: KurdistanColors.kesk, backgroundColor: KurdistanColors.kesk,
justifyContent: 'center', justifyContent: 'center',
alignItems: 'center', alignItems: 'center',
}, },
addIcon: { addIcon: {
fontSize: 24, fontSize: 14,
color: KurdistanColors.spi, color: KurdistanColors.spi,
fontWeight: 'bold', fontWeight: '600',
}, },
platformStats: { platformStats: {
flexDirection: 'row', flexDirection: 'row',