From a639101e28395dc7a2e93abbc69e3d045c4a9c77 Mon Sep 17 00:00:00 2001 From: elforjani13 <39470382+elforjani13@users.noreply.github.com> Date: Sun, 6 Mar 2022 23:26:09 +0200 Subject: [PATCH] feat(cashflow): add exchange rate muted. --- .../ExchangeRate/ExchangeRateMutedField.js | 40 +++++++++++-------- .../OtherIncome/OtherIncomeFormFields.js | 2 +- .../OwnerContributionFormFields.js | 2 +- .../TransferFromAccountFormFields.js | 2 +- .../OtherExpense/OtherExpnseFormFields.js | 2 +- .../OwnerDrawings/OwnerDrawingsFormFields.js | 2 +- .../TransferToAccountFormFields.js | 2 +- 7 files changed, 30 insertions(+), 22 deletions(-) diff --git a/src/components/ExchangeRate/ExchangeRateMutedField.js b/src/components/ExchangeRate/ExchangeRateMutedField.js index 10bd7fbe3..720f082c4 100644 --- a/src/components/ExchangeRate/ExchangeRateMutedField.js +++ b/src/components/ExchangeRate/ExchangeRateMutedField.js @@ -29,16 +29,15 @@ export function ExchangeRateMutedField({ if (isEqual(toCurrency, fromCurrency) && !isUndefined(toCurrency)) { return null; } - const content = ( - + - + ); return ( @@ -53,12 +52,16 @@ export function ExchangeRateMutedField({ offset: { offset: '0, 4' }, }} minimal={true} + usePortal={false} + target={
} > - } - > + 1 {fromCurrency} = {exchangeRate} {toCurrency} +