From 5cbf7e619ee8fbc9aad94a5ddcd31fe81c79f9b5 Mon Sep 17 00:00:00 2001 From: Carlos Martins Date: Mon, 11 Nov 2024 12:02:09 -0700 Subject: [PATCH 1/7] add rbr to button --- src/components/SelectionList/Search/ActionCell.tsx | 8 ++++++-- src/libs/SearchUIUtils.ts | 4 ++++ src/types/onyx/SearchResults.ts | 3 +++ 3 files changed, 13 insertions(+), 2 deletions(-) diff --git a/src/components/SelectionList/Search/ActionCell.tsx b/src/components/SelectionList/Search/ActionCell.tsx index 55e2cf6f849d..50c24a138b0e 100644 --- a/src/components/SelectionList/Search/ActionCell.tsx +++ b/src/components/SelectionList/Search/ActionCell.tsx @@ -11,6 +11,7 @@ import variables from '@styles/variables'; import CONST from '@src/CONST'; import type {TranslationPaths} from '@src/languages/types'; import type {SearchTransactionAction} from '@src/types/onyx/SearchResults'; +import Icon from '@components/Icon'; const actionTranslationsMap: Record = { view: 'common.view', @@ -73,17 +74,20 @@ function ActionCell({ ); } - if (action === CONST.SEARCH.ACTION_TYPES.VIEW || shouldUseViewAction) { + if (action === CONST.SEARCH.ACTION_TYPES.VIEW || action === CONST.SEARCH.ACTION_TYPES.REVIEW || shouldUseViewAction) { const buttonInnerStyles = isSelected ? styles.buttonDefaultHovered : {}; return isLargeScreenWidth ? (