-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Add several UI fixes to MoneyRequestTransaction list #61677
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -29,7 +29,6 @@ function TransactionItemRow({ | |
isSelected, | ||
shouldShowTooltip, | ||
dateColumnSize, | ||
shouldShowChatBubbleComponent = false, | ||
onCheckboxPress, | ||
shouldShowCheckbox = false, | ||
}: { | ||
|
@@ -38,7 +37,6 @@ function TransactionItemRow({ | |
isSelected: boolean; | ||
shouldShowTooltip: boolean; | ||
dateColumnSize: TableColumnSize; | ||
shouldShowChatBubbleComponent?: boolean; | ||
onCheckboxPress: (transactionID: string) => void; | ||
shouldShowCheckbox: boolean; | ||
}) { | ||
|
@@ -80,8 +78,8 @@ function TransactionItemRow({ | |
> | ||
{shouldUseNarrowLayout ? ( | ||
<Animated.View style={[animatedHighlightStyle]}> | ||
<View style={[styles.expenseWidgetRadius, styles.justifyContentEvenly, styles.gap3, bgActiveStyles]}> | ||
<View style={[styles.flexRow, styles.mt3, styles.mr3, styles.ml3]}> | ||
<View style={[styles.expenseWidgetRadius, styles.justifyContentEvenly, styles.p3, bgActiveStyles]}> | ||
<View style={[styles.flexRow]}> | ||
{shouldShowCheckbox && ( | ||
<View style={[styles.mr3, styles.justifyContentCenter]}> | ||
<Checkbox | ||
|
@@ -138,10 +136,10 @@ function TransactionItemRow({ | |
)} | ||
</View> | ||
</View> | ||
<View style={[styles.flexRow, styles.justifyContentBetween, styles.mh3, styles.mb3]}> | ||
<View style={[styles.flexColumn, styles.gap2]}> | ||
<View style={[styles.flexRow, styles.justifyContentBetween, styles.alignItemsCenter]}> | ||
<View style={[styles.flexColumn]}> | ||
{hasCategoryOrTag && ( | ||
<View style={[styles.flexRow, styles.alignItemsCenter, styles.gap2]}> | ||
<View style={[styles.flexRow, styles.alignItemsCenter, styles.gap2, styles.mt3]}> | ||
<CategoryCell | ||
transactionItem={transactionItem} | ||
shouldShowTooltip={shouldShowTooltip} | ||
|
@@ -154,9 +152,15 @@ function TransactionItemRow({ | |
/> | ||
</View> | ||
)} | ||
<TransactionItemRowRBR transaction={transactionItem} /> | ||
<TransactionItemRowRBR | ||
transaction={transactionItem} | ||
containerStyles={[styles.mt3]} | ||
/> | ||
</View> | ||
{shouldShowChatBubbleComponent && <ChatBubbleCell transaction={transactionItem} />} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please don't remove this check. We should prevent ChatBubbleCell from rendering if shouldShowChatBubbleComponent is false There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @DylanDylann can you tell me when it could be false? |
||
<ChatBubbleCell | ||
transaction={transactionItem} | ||
containerStyles={[styles.mt3]} | ||
/> | ||
</View> | ||
</View> | ||
</Animated.View> | ||
|
@@ -215,7 +219,7 @@ function TransactionItemRow({ | |
/> | ||
</View> | ||
<View style={[StyleUtils.getReportTableColumnStyles(CONST.REPORT.TRANSACTION_LIST.COLUMNS.COMMENTS)]}> | ||
{shouldShowChatBubbleComponent && <ChatBubbleCell transaction={transactionItem} />} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. same above |
||
<ChatBubbleCell transaction={transactionItem} /> | ||
</View> | ||
<View style={[StyleUtils.getReportTableColumnStyles(CONST.SEARCH.TABLE_COLUMNS.TOTAL_AMOUNT)]}> | ||
<TotalCell | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this was only used twice in the app, and always
true
so I removed it