Skip to content

Commit b4afeb9

Browse files
committed
Remove duplicate borderBottom from MoneyRequestReportTransactionItem
Signed-off-by: krishna2323 <belivethatkg@gmail.com>
1 parent e5423df commit b4afeb9

2 files changed

Lines changed: 2 additions & 6 deletions

File tree

src/components/MoneyRequestReportView/MoneyRequestReportTransactionItem.tsx

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -136,11 +136,7 @@ function MoneyRequestReportTransactionItem({
136136
role={getButtonRole(true)}
137137
isNested
138138
id={transaction.transactionID}
139-
style={[
140-
styles.transactionListItemStyle,
141-
shouldUseNarrowLayout && styles.noBorderRadius,
142-
shouldUseNarrowLayout && !isLastItem && {...styles.borderBottom, borderColor: isSelected ? theme.buttonHoveredBG : theme.border},
143-
]}
139+
style={[styles.transactionListItemStyle, shouldUseNarrowLayout && styles.noBorderRadius]}
144140
hoverStyle={[!isPendingDelete && styles.hoveredComponentBG, isSelected && styles.activeComponentBG]}
145141
dataSet={{[CONST.SELECTION_SCRAPER_HIDDEN_ELEMENT]: true}}
146142
onPressIn={() => canUseTouchScreen() && ControlSelection.block()}

src/components/Search/SearchList/ListItem/TransactionGroupListItem.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -552,7 +552,7 @@ function TransactionGroupListItem<TItem extends ListItem>({
552552
onPress={onExpandIconPress}
553553
expandButtonStyle={isLargeScreenWidth ? styles.pv2 : styles.pv4Half}
554554
shouldShowToggleButton={isLargeScreenWidth}
555-
borderBottomStyle={isLargeScreenWidth && styles.borderNone}
555+
borderBottomStyle={isLargeScreenWidth ? styles.borderNone : isItemSelected && {borderColor: theme.buttonHoveredBG}}
556556
sentryLabel={CONST.SENTRY_LABEL.SEARCH.GROUP_EXPAND_TOGGLE}
557557
>
558558
<TransactionGroupListExpandedItem

0 commit comments

Comments
 (0)