mirror of
https://gitea.tendokyu.moe/ppc/amnet.git
synced 2026-10-05 13:17:59 +03:00
fix remaining header-related issues
This commit is contained in:
@@ -114,7 +114,12 @@ export default function AppRoot() {
|
||||
{/* main app */}
|
||||
<Stack.Screen name="app" component={AppContent} options={{headerShown: false}}/>
|
||||
|
||||
<Stack.Group screenOptions={{presentation: "modal"}}>
|
||||
<Stack.Group screenOptions={{
|
||||
presentation: "modal",
|
||||
headerTitleStyle: {
|
||||
fontWeight: "bold"
|
||||
}
|
||||
}}>
|
||||
<Stack.Screen name="add-server" component={ServerAddModal} options={{title: "Add Server"}}/>
|
||||
<Stack.Screen name="add-card" component={CardAddModal} options={{title: "Add Card", headerShown: Platform.OS !== 'ios'}}/>
|
||||
<Stack.Screen name="edit-card" component={CardEditorModal} options={{title: "Edit Card"}}/>
|
||||
|
||||
@@ -14,7 +14,7 @@ const Stack = createNativeStackNavigator();
|
||||
|
||||
function CardAddModal() {
|
||||
return (
|
||||
<Stack.Navigator initialRouteName="Select">
|
||||
<Stack.Navigator initialRouteName="Select" screenOptions={{headerTitleStyle: {fontWeight: "bold"}}}>
|
||||
<Stack.Screen name="Select" component={CardAddMethodSelector} options={{headerShown: false}}/>
|
||||
|
||||
<Stack.Screen name="Scan" component={PhysicalCardScan} options={{title: "Add Physical Card"}}/>
|
||||
@@ -34,7 +34,9 @@ function CardAddMethodSelector({navigation}) {
|
||||
return (
|
||||
<View style={{paddingHorizontal: 15, paddingTop: 90, gap: 8}}>
|
||||
<View style={{paddingBottom: 25, gap: 5}}>
|
||||
<Text variant="titleLarge" style={{textAlign: "center", fontSize: 32, fontWeight: "bold"}}>Add new Card</Text>
|
||||
<Text variant="titleLarge" style={{textAlign: "center", fontSize: 32, lineHeight: 32, fontWeight: "bold"}}>
|
||||
Add new Card
|
||||
</Text>
|
||||
<Text variant="bodyMedium" style={{textAlign: "center"}}>
|
||||
AMNet supports scanning physical cards, entering details manually or generating new ones.
|
||||
</Text>
|
||||
|
||||
Reference in New Issue
Block a user