From 9a407dda1e335d5fa6fda8d2800b85071a971e12 Mon Sep 17 00:00:00 2001 From: Zuzanna Furtak Date: Mon, 12 Jan 2026 11:48:00 +0100 Subject: [PATCH 1/2] Fix right caret --- src/components/SelectionList/BaseSelectionList.tsx | 2 ++ .../SelectionList/ListItem/BaseListItem.tsx | 14 ++++++++++++++ .../SelectionList/ListItem/ListItemRenderer.tsx | 2 ++ 3 files changed, 18 insertions(+) diff --git a/src/components/SelectionList/BaseSelectionList.tsx b/src/components/SelectionList/BaseSelectionList.tsx index 91be805fd50..94c0a6b8175 100644 --- a/src/components/SelectionList/BaseSelectionList.tsx +++ b/src/components/SelectionList/BaseSelectionList.tsx @@ -74,6 +74,7 @@ function BaseSelectionList({ shouldUseUserSkeletonView, shouldShowTooltips = true, shouldIgnoreFocus = false, + shouldShowRightCaret = false, shouldStopPropagation = false, shouldHeaderBeInsideList = false, shouldScrollToFocusedIndex = true, @@ -375,6 +376,7 @@ function BaseSelectionList({ shouldSyncFocus={!isTextInputFocusedRef.current && hasKeyBeenPressed.current} shouldDisableHoverStyle={shouldDisableHoverStyle} shouldStopMouseLeavePropagation={false} + shouldShowRightCaret={shouldShowRightCaret} /> ); diff --git a/src/components/SelectionList/ListItem/BaseListItem.tsx b/src/components/SelectionList/ListItem/BaseListItem.tsx index b711705cc96..6cc84c3304b 100644 --- a/src/components/SelectionList/ListItem/BaseListItem.tsx +++ b/src/components/SelectionList/ListItem/BaseListItem.tsx @@ -7,6 +7,7 @@ import * as Expensicons from '@components/Icon/Expensicons'; import OfflineWithFeedback from '@components/OfflineWithFeedback'; import PressableWithFeedback from '@components/Pressable/PressableWithFeedback'; import useHover from '@hooks/useHover'; +import {useMemoizedLazyExpensifyIcons} from '@hooks/useLazyAsset'; import {useMouseContext} from '@hooks/useMouseContext'; import useStyleUtils from '@hooks/useStyleUtils'; import useSyncFocus from '@hooks/useSyncFocus'; @@ -45,12 +46,14 @@ function BaseListItem({ shouldHighlightSelectedItem = true, shouldDisableHoverStyle, shouldStopMouseLeavePropagation = true, + shouldShowRightCaret = false, }: BaseListItemProps) { const theme = useTheme(); const styles = useThemeStyles(); const StyleUtils = useStyleUtils(); const {hovered, bind} = useHover(); const {isMouseDownOnInput, setMouseUp} = useMouseContext(); + const icons = useMemoizedLazyExpensifyIcons(['ArrowRight']); const pressableRef = useRef(null); @@ -167,6 +170,17 @@ function BaseListItem({ )} {rightHandSideComponentRender()} + {shouldShowRightCaret && ( + + + + )} {FooterComponent} diff --git a/src/components/SelectionList/ListItem/ListItemRenderer.tsx b/src/components/SelectionList/ListItem/ListItemRenderer.tsx index 0a28837594d..494e2edeacb 100644 --- a/src/components/SelectionList/ListItem/ListItemRenderer.tsx +++ b/src/components/SelectionList/ListItem/ListItemRenderer.tsx @@ -49,6 +49,7 @@ function ListItemRenderer({ shouldHighlightSelectedItem, shouldDisableHoverStyle, shouldStopMouseLeavePropagation, + shouldShowRightCaret, }: ListItemRendererProps) { const handleOnCheckboxPress = () => { if (isTransactionGroupListItemType(item)) { @@ -102,6 +103,7 @@ function ListItemRenderer({ shouldHighlightSelectedItem={shouldHighlightSelectedItem} shouldDisableHoverStyle={shouldDisableHoverStyle} shouldStopMouseLeavePropagation={shouldStopMouseLeavePropagation} + shouldShowRightCaret={shouldShowRightCaret} /> {item.footerContent && item.footerContent} From 4795c6c9b8413b86c371f313b5b4d7532541a7ed Mon Sep 17 00:00:00 2001 From: Zuzanna Furtak Date: Mon, 12 Jan 2026 12:14:26 +0100 Subject: [PATCH 2/2] Rerun eslint check