File tree Expand file tree Collapse file tree
apps/mobile/src/features/workspace Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -121,17 +121,6 @@ export function WorkspaceToolbar(props: {
121121 separateBackground
122122 />
123123 ) : null ;
124- // The folded Duo opens search from its tab bar's search tab; this button only closes it.
125- const searchButton =
126- foldedSearch && searchVisible ? (
127- < Toolbar . Button
128- identifier = "workspace-search"
129- accessibilityLabel = "Close search"
130- icon = "xmark"
131- onPress = { ( ) => searchRef . current ?. cancelSearch ( ) }
132- separateBackground
133- />
134- ) : null ;
135124 return (
136125 < >
137126 < NativeStackScreenOptions
@@ -158,7 +147,6 @@ export function WorkspaceToolbar(props: {
158147 sidebarTabs !== "picker" ,
159148 placeholder :
160149 selectedTab === "pullRequests" ? "Search pull requests" : "Search threads" ,
161- cancelButtonHidden : foldedSearch ,
162150 onFocus : searchFocused ,
163151 onBlur : ( ) => workspace . dispatch ( { type : "expand" , tab : selectedTab } ) ,
164152 onSearchButtonPress : ( ) => searchRef . current ?. blur ( ) ,
@@ -175,8 +163,6 @@ export function WorkspaceToolbar(props: {
175163 />
176164 { /* UIKit lays trailing items out from the edge inward. */ }
177165 < Toolbar placement = "right" >
178- { searchButton }
179- { nativeToolbarCompose && searchButton ? < Toolbar . Spacer width = { 8 } /> : null }
180166 { composeButton }
181167 { selectedTab !== "threads" ||
182168 isDuoDevice ( deviceType ) ||
You can’t perform that action at this time.
0 commit comments