Skip to content

Commit 101e0c1

Browse files
authored
Merge pull request Expensify#67398 from software-mansion-labs/jakubkalinski0/Expense-A-to-B-and-B-to-A-indicators-are-displayed-on-three-lines
[CP Staging] Fixed A to B and B to A indicators being displayed on three lines
2 parents 7208e29 + 32f5987 commit 101e0c1

1 file changed

Lines changed: 11 additions & 12 deletions

File tree

src/components/ReportActionItem/TransactionPreview/TransactionPreviewContent.tsx

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -231,18 +231,17 @@ function TransactionPreviewContent({
231231
<View style={[styles.expenseAndReportPreviewBoxBody, styles.mtn1]}>
232232
<View style={styles.gap3}>
233233
{shouldShowIOUHeader && (
234-
<View style={[styles.flex1, styles.dFlex, styles.alignItemsCenter, styles.gap2, styles.flexRow]}>
235-
<UserInfoCellsWithArrow
236-
shouldShowToRecipient
237-
participantFrom={from}
238-
participantFromDisplayName={from.displayName ?? from.login ?? translate('common.hidden')}
239-
participantToDisplayName={to.displayName ?? to.login ?? translate('common.hidden')}
240-
participantTo={to}
241-
avatarSize="mid-subscript"
242-
infoCellsTextStyle={{...styles.textMicroBold, lineHeight: 14}}
243-
infoCellsAvatarStyle={styles.pr1}
244-
/>
245-
</View>
234+
<UserInfoCellsWithArrow
235+
shouldShowToRecipient
236+
participantFrom={from}
237+
participantFromDisplayName={from.displayName ?? from.login ?? translate('common.hidden')}
238+
participantToDisplayName={to.displayName ?? to.login ?? translate('common.hidden')}
239+
participantTo={to}
240+
avatarSize="mid-subscript"
241+
infoCellsTextStyle={{...styles.textMicroBold, lineHeight: 14}}
242+
infoCellsAvatarStyle={styles.pr1}
243+
style={[styles.flex1, styles.dFlex, styles.alignItemsCenter, styles.gap2, styles.flexRow]}
244+
/>
246245
)}
247246
<View style={previewTextViewGap}>
248247
<View style={[styles.flexRow, styles.alignItemsCenter]}>

0 commit comments

Comments
 (0)