Skip to content

Commit 1848587

Browse files
committed
Move ChatBubbleCell inline with merchant row on narrow layout
Signed-off-by: krishna2323 <belivethatkg@gmail.com>
1 parent f8e8c89 commit 1848587

1 file changed

Lines changed: 13 additions & 12 deletions

File tree

src/components/TransactionItemRow/index.tsx

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -763,11 +763,19 @@ function TransactionItemRow({
763763
isDescription={!merchant}
764764
/>
765765
) : null}
766-
<TotalCell
767-
transactionItem={transactionItem}
768-
shouldShowTooltip={shouldShowTooltip}
769-
shouldUseNarrowLayout={shouldUseNarrowLayout}
770-
/>
766+
<View style={[styles.flexRow, styles.alignItemsCenter, styles.gap2]}>
767+
{shouldRenderChatBubbleCell && (
768+
<ChatBubbleCell
769+
transaction={transactionItem}
770+
isInSingleTransactionReport={isInSingleTransactionReport}
771+
/>
772+
)}
773+
<TotalCell
774+
transactionItem={transactionItem}
775+
shouldShowTooltip={shouldShowTooltip}
776+
shouldUseNarrowLayout={shouldUseNarrowLayout}
777+
/>
778+
</View>
771779
</View>
772780
<View style={[styles.flexRow, styles.alignItemsCenter, styles.justifyContentBetween, styles.gap2]}>
773781
<DateCell
@@ -817,13 +825,6 @@ function TransactionItemRow({
817825
shouldUseNarrowLayout
818826
/>
819827
)}
820-
{shouldRenderChatBubbleCell && (
821-
<ChatBubbleCell
822-
transaction={transactionItem}
823-
containerStyles={[styles.mt2]}
824-
isInSingleTransactionReport={isInSingleTransactionReport}
825-
/>
826-
)}
827828
</View>
828829
{!!shouldShowBottomBorder && (
829830
<View style={bgActiveStyles}>

0 commit comments

Comments
 (0)