From 91b66c98f5f89849623cf815480be61a29841f44 Mon Sep 17 00:00:00 2001 From: Joshua Higgins Date: Sat, 17 Oct 2026 18:23:06 -0400 Subject: [PATCH] fix(mobile): hide profile button on subviews --- 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, })} /> ) -- 2.54.1