Skip to content

Commit 43352e5

Browse files
Banyel3claude
andcommitted
fix(customer): orders empty CTA opens /book; hide leaked "(tabs)" back title
- the "Book a wash" empty-state action went to home (router.replace('/')); now it pushes /book directly, same as home's Book-a-wash CTA. - header back button was showing the group route name "(tabs)" as its title; set headerBackButtonDisplayMode 'minimal' (chevron only) across the stack. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent fc5da65 commit 43352e5

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

apps/customer-mobile/src/app/(tabs)/orders.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ export default function OrdersScreen() {
6565
title="No orders yet"
6666
subtitle="Book your first express wash and it'll show up here."
6767
actionLabel="Book a wash"
68-
onAction={() => router.replace('/')}
68+
onAction={() => router.push('/book')}
6969
/>
7070
</Screen>
7171
);

apps/customer-mobile/src/app/_layout.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,8 @@ export default function RootLayout() {
6666
headerTintColor: colors.text,
6767
headerTitleStyle: { fontFamily: font.bold, color: colors.text },
6868
headerShadowVisible: false,
69+
// Chevron only — hide the previous route's title (was leaking "(tabs)").
70+
headerBackButtonDisplayMode: 'minimal',
6971
contentStyle: { backgroundColor: colors.bg },
7072
}}
7173
>

0 commit comments

Comments
 (0)