Skip to content

Commit 8b2a55b

Browse files
authored
Merge pull request Expensify#67347 from software-mansion-labs/jakubkalinski0/Expense-Report-total-on-the-report-preview-moves-when-approving-and-paying-elsewhere
[CP Staging] Fixed the fllickering total when approving and paying
2 parents 24c746a + 4325291 commit 8b2a55b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/components/ReportActionItem/MoneyRequestReportPreview/MoneyRequestReportPreviewContent.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@ function MoneyRequestReportPreviewContent({
290290

291291
const reportStatus = useMemo(() => getReportStatusTranslation(iouReport?.stateNum, iouReport?.statusNum), [iouReport?.stateNum, iouReport?.statusNum]);
292292

293-
const totalAmountStyle = shouldUseNarrowLayout ? [styles.flexColumnReverse, styles.alignItemsStretch] : [styles.flexRow, styles.alignItemsBaseline];
293+
const totalAmountStyle = shouldUseNarrowLayout ? [styles.flexColumnReverse, styles.alignItemsStretch] : [styles.flexRow, styles.alignItemsCenter];
294294

295295
useEffect(() => {
296296
if (!isPaidAnimationRunning || isApprovedAnimationRunning) {
@@ -739,7 +739,7 @@ function MoneyRequestReportPreviewContent({
739739
{/* height is needed to avoid flickering on animation */}
740740
<View style={[buttonMaxWidth, styles.flex1, {height: variables.h40}]}>{reportPreviewActions[reportPreviewAction]}</View>
741741
{transactions.length > 1 && (
742-
<View style={[styles.flexRow, shouldUseNarrowLayout ? styles.justifyContentBetween : styles.gap2, styles.alignItemsBaseline]}>
742+
<View style={[styles.flexRow, shouldUseNarrowLayout ? styles.justifyContentBetween : styles.gap2, styles.alignItemsCenter]}>
743743
<Text
744744
style={[styles.textLabelSupporting]}
745745
numberOfLines={1}

0 commit comments

Comments
 (0)