Skip to content

Commit

Permalink
Merge pull request #40728 from Expensify/cmartins-updateSearchName
Browse files Browse the repository at this point in the history
Rename search page
  • Loading branch information
deetergp authored Apr 24, 2024
2 parents 5b1c240 + edd0bba commit 917c5cf
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
3 changes: 2 additions & 1 deletion src/languages/en.ts
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@ export default {
optional: 'Optional',
new: 'New',
search: 'Search',
find: 'Find',
searchWithThreeDots: 'Search...',
next: 'Next',
previous: 'Previous',
Expand Down Expand Up @@ -550,7 +551,7 @@ export default {
},
},
sidebarScreen: {
buttonSearch: 'Search for something...',
buttonFind: 'Find something...',
buttonMySettings: 'My settings',
fabNewChat: 'Start chat',
fabNewChatExplained: 'Start chat (Floating action)',
Expand Down
3 changes: 2 additions & 1 deletion src/languages/es.ts
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ export default {
optional: 'Opcional',
new: 'Nuevo',
search: 'Buscar',
find: 'Encontrar',
searchWithThreeDots: 'Buscar...',
select: 'Seleccionar',
next: 'Siguiente',
Expand Down Expand Up @@ -543,7 +544,7 @@ export default {
},
},
sidebarScreen: {
buttonSearch: 'Busca algo...',
buttonFind: 'Encuentre algo...',
buttonMySettings: 'Mi configuración',
fabNewChat: 'Iniciar chat',
fabNewChatExplained: 'Iniciar chat (Acción flotante)',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,9 @@ function TopBar({policy, session, breadcrumbLabel, shouldDisplaySearch = true}:
</View>
{displaySignIn && <SignInButton />}
{displaySearch && (
<Tooltip text={translate('common.search')}>
<Tooltip text={translate('common.find')}>
<PressableWithoutFeedback
accessibilityLabel={translate('sidebarScreen.buttonSearch')}
accessibilityLabel={translate('sidebarScreen.buttonFind')}
style={[styles.flexRow, styles.mr2]}
onPress={Session.checkIfActionIsAllowed(() => Navigation.navigate(ROUTES.CHAT_FINDER))}
>
Expand Down
3 changes: 1 addition & 2 deletions src/pages/ChatFinderPage/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -168,8 +168,7 @@ function ChatFinderPage({betas, isSearchingForReports, navigation}: ChatFinderPa
navigation={navigation}
>
<HeaderWithBackButton
// ASK: What text do we want to use for the title?
title={translate('common.search')}
title={translate('common.find')}
onBackButtonPress={Navigation.goBack}
/>
<SelectionList<OptionData>
Expand Down

0 comments on commit 917c5cf

Please sign in to comment.