Skip to content

Commit

Permalink
Merge pull request #29544 from tienifr/fix/29543
Browse files Browse the repository at this point in the history
fix: 29543 Dot separator in the report preview component appears bottom aligned
  • Loading branch information
mountiny authored Oct 13, 2023
2 parents 6fefd26 + 9d04cf9 commit 5ae9c3e
Showing 1 changed file with 2 additions and 15 deletions.
17 changes: 2 additions & 15 deletions src/components/ReportActionItem/MoneyRequestPreview.js
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ function MoneyRequestPreview(props) {
const receiptImages = hasReceipt ? [ReceiptUtils.getThumbnailAndImageURIs(props.transaction.receipt.source, props.transaction.filename || '')] : [];

const getSettledMessage = () => {
if (isExpensifyCardTransaction || isDistanceRequest) {
if (isExpensifyCardTransaction) {
return props.translate('common.done');
}
switch (lodashGet(props.action, 'originalMessage.paymentType', '')) {
Expand Down Expand Up @@ -263,20 +263,7 @@ function MoneyRequestPreview(props) {
) : (
<View style={styles.moneyRequestPreviewBoxText}>
<View style={[styles.flexRow]}>
<View style={[styles.flex1, styles.flexRow, styles.alignItemsCenter]}>
<Text style={[styles.textLabelSupporting, styles.mb1, styles.lh20]}>{getPreviewHeaderText()}</Text>
{isSettled && (
<>
<Icon
src={Expensicons.DotIndicator}
width={4}
height={4}
additionalStyles={[styles.mr1, styles.ml1]}
/>
<Text style={[styles.textLabelSupporting, styles.mb1, styles.lh20]}>{getSettledMessage()}</Text>
</>
)}
</View>
<Text style={[styles.textLabelSupporting, styles.lh20, styles.mb1]}>{getPreviewHeaderText() + (isSettled ? ` • ${getSettledMessage()}` : '')}</Text>
{hasFieldErrors && (
<Icon
src={Expensicons.DotIndicator}
Expand Down

0 comments on commit 5ae9c3e

Please sign in to comment.