Skip to content

Commit a3c4758

Browse files
committed
fix(mobile): hide workspace search on Usage
1 parent 47636ab commit a3c4758

1 file changed

Lines changed: 12 additions & 8 deletions

File tree

‎apps/mobile/src/features/workspace/WorkspaceRootScreen.tsx‎

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -158,14 +158,18 @@ function WorkspaceRootContent() {
158158
title="T3 Code"
159159
titleContent={renderHeaderTitle()}
160160
actions={[
161-
{
162-
accessibilityLabel:
163-
state.selectedTab === "threads" ? "Search threads" : "Search pull requests",
164-
icon: "magnifyingglass",
165-
onPress: () => {
166-
dispatchHardwareKeyboardCommand("focusSearch");
167-
},
168-
},
161+
...(state.selectedTab === "threads" || state.selectedTab === "pullRequests"
162+
? [
163+
{
164+
accessibilityLabel:
165+
state.selectedTab === "threads" ? "Search threads" : "Search pull requests",
166+
icon: "magnifyingglass" as const,
167+
onPress: () => {
168+
dispatchHardwareKeyboardCommand("focusSearch");
169+
},
170+
},
171+
]
172+
: []),
169173
{
170174
accessibilityLabel: "Settings",
171175
icon: "gearshape",

0 commit comments

Comments
 (0)