Skip to content

Commit

Permalink
fix: minor style fix
Browse files Browse the repository at this point in the history
  • Loading branch information
koko57 committed Oct 19, 2023
1 parent 127ccff commit fdc60fb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/MoneyReportHeader.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ function MoneyReportHeader({session, personalDetails, policy, chatReport, nextSt
const shouldShowAnyButton = shouldShowSettlementButton || shouldShowApproveButton || shouldShowSubmitButton || shouldShowNextSteps;
const bankAccountRoute = ReportUtils.getBankAccountRoute(chatReport);
const formattedAmount = CurrencyUtils.convertToDisplayString(reimbursableTotal, moneyRequestReport.currency);
const isMoreContentShown = shouldShowNextSteps || (shouldShowAnyButton && isSmallScreenWidth);

return (
<View style={[styles.pt0]}>
Expand Down Expand Up @@ -150,7 +151,7 @@ function MoneyReportHeader({session, personalDetails, policy, chatReport, nextSt
</View>
)}
</HeaderWithBackButton>
<View style={shouldShowAnyButton ? [styles.dFlex, styles.flexColumn, styles.borderBottom] : []}>
<View style={isMoreContentShown ? [styles.dFlex, styles.flexColumn, styles.borderBottom] : []}>
{shouldShowNextSteps && (
<View style={[styles.ph5, styles.pb2]}>
<MoneyReportHeaderStatusBar nextStep={nextStep} />
Expand Down

0 comments on commit fdc60fb

Please sign in to comment.