From 281acdf27a6f5fe682d46a63b0164bc1ca2b295c Mon Sep 17 00:00:00 2001 From: Joshua Higgins Date: Sun, 6 Sep 2026 15:07:30 -0400 Subject: [PATCH] fix(mobile): hide profile button on non-primary pages --- apps/mobile/app/(app)/(tabs)/home/_layout.tsx | 11 ++++++----- apps/mobile/app/(app)/(tabs)/library/_layout.tsx | 11 ++++++----- apps/mobile/app/(app)/(tabs)/search/_layout.tsx | 11 ++++++----- 3 files changed, 18 insertions(+), 15 deletions(-) diff --git a/apps/mobile/app/(app)/(tabs)/home/_layout.tsx b/apps/mobile/app/(app)/(tabs)/home/_layout.tsx index 893a6c7..b1037c1 100644 --- a/apps/mobile/app/(app)/(tabs)/home/_layout.tsx +++ b/apps/mobile/app/(app)/(tabs)/home/_layout.tsx @@ -16,17 +16,18 @@ export default function HomeLayout() { screenOptions={({ route }) => ({ ...baseOptions, title: tabStackScreenTitles[route.name] ?? "Home", - headerRight: route.name === "settings" ? undefined : () => , + headerRight: + route.name === "index" ? () => : undefined, unstable_headerRightItems: - route.name === "settings" - ? undefined - : () => [ + route.name === "index" + ? () => [ { type: "custom", element: , hidesSharedBackground: true, }, - ], + ] + : undefined, })} /> ) diff --git a/apps/mobile/app/(app)/(tabs)/library/_layout.tsx b/apps/mobile/app/(app)/(tabs)/library/_layout.tsx index c706300..7bf6ee5 100644 --- a/apps/mobile/app/(app)/(tabs)/library/_layout.tsx +++ b/apps/mobile/app/(app)/(tabs)/library/_layout.tsx @@ -16,17 +16,18 @@ export default function LibraryLayout() { screenOptions={({ route }) => ({ ...baseOptions, title: tabStackScreenTitles[route.name] ?? "Library", - headerRight: route.name === "settings" ? undefined : () => , + headerRight: + route.name === "index" ? () => : undefined, unstable_headerRightItems: - route.name === "settings" - ? undefined - : () => [ + route.name === "index" + ? () => [ { type: "custom", element: , hidesSharedBackground: true, }, - ], + ] + : undefined, })} /> ) diff --git a/apps/mobile/app/(app)/(tabs)/search/_layout.tsx b/apps/mobile/app/(app)/(tabs)/search/_layout.tsx index a7103d1..612af11 100644 --- a/apps/mobile/app/(app)/(tabs)/search/_layout.tsx +++ b/apps/mobile/app/(app)/(tabs)/search/_layout.tsx @@ -16,17 +16,18 @@ export default function SearchLayout() { screenOptions={({ route }) => ({ ...baseOptions, title: tabStackScreenTitles[route.name] ?? "Search", - headerRight: route.name === "settings" ? undefined : () => , + headerRight: + route.name === "index" ? () => : undefined, unstable_headerRightItems: - route.name === "settings" - ? undefined - : () => [ + route.name === "index" + ? () => [ { type: "custom", element: , hidesSharedBackground: true, }, - ], + ] + : undefined, })} /> )