Skip to content

Commit

Permalink
Merge pull request #54136 from Expensify/francois-fix-search-page-chi…
Browse files Browse the repository at this point in the history
…ld-item-text

[CP Staging] Use the text `View` for child items on the search page

(cherry picked from commit 0d71324)

(CP triggered by luacmartins)
  • Loading branch information
luacmartins authored and OSBotify committed Dec 13, 2024
1 parent 9c89c3f commit e6c6e48
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/SelectionList/Search/ActionCell.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ function ActionCell({
const StyleUtils = useStyleUtils();
const {isOffline} = useNetwork();

const text = translate(actionTranslationsMap[action]);
const text = isChildListItem ? translate(actionTranslationsMap[CONST.SEARCH.ACTION_TYPES.VIEW]) : translate(actionTranslationsMap[action]);

const getButtonInnerStyles = useCallback(
(shouldUseSuccessStyle: boolean) => {
Expand Down Expand Up @@ -90,7 +90,7 @@ function ActionCell({
if (action === CONST.SEARCH.ACTION_TYPES.VIEW || action === CONST.SEARCH.ACTION_TYPES.REVIEW || shouldUseViewAction) {
return isLargeScreenWidth ? (
<Button
text={translate(actionTranslationsMap[action])}
text={text}
onPress={goToItem}
small
style={[styles.w100]}
Expand Down

0 comments on commit e6c6e48

Please sign in to comment.