hiding balance on swap page if balance is hidden (#399)
This commit is contained in:
@@ -71,6 +71,7 @@ import customUUID from '../../functions/customUUID';
|
||||
import { useFlashnet } from '../../../context-store/flashnetContext';
|
||||
import { useUserBalanceContext } from '../../../context-store/userBalanceContext';
|
||||
import useHandleBackPressNew from '../../hooks/useHandleBackPressNew';
|
||||
import FormattedSatText from '../../functions/CustomElements/satTextDisplay';
|
||||
|
||||
const confirmTxAnimation = require('../../assets/confirmTxAnimation.json');
|
||||
|
||||
@@ -1288,21 +1289,21 @@ export default function SwapsPage() {
|
||||
]}
|
||||
>
|
||||
<View style={styles.cardHeader}>
|
||||
<ThemeText
|
||||
<FormattedSatText
|
||||
frontText={
|
||||
t('screens.inAccount.swapsPage.fromBalanceHidden') + ' '
|
||||
}
|
||||
styles={styles.label}
|
||||
content={t('screens.inAccount.swapsPage.fromBalance', {
|
||||
amount: displayCorrectDenomination({
|
||||
amount: displayBalance,
|
||||
masterInfoObject: {
|
||||
...masterInfoObject,
|
||||
userBalanceDenomination:
|
||||
fromAsset === 'BTC' ? 'sats' : 'fiat',
|
||||
},
|
||||
forceCurrency: 'USD',
|
||||
fiatStats,
|
||||
convertAmount: fromAsset === 'BTC',
|
||||
}),
|
||||
})}
|
||||
balance={displayBalance}
|
||||
globalBalanceDenomination={
|
||||
masterInfoObject.userBalanceDenomination === 'hidden'
|
||||
? 'hidden'
|
||||
: fromAsset === 'BTC'
|
||||
? 'sats'
|
||||
: 'fiat'
|
||||
}
|
||||
useBalance={fromAsset === 'USD'}
|
||||
forceCurrency={'USD'}
|
||||
/>
|
||||
{isSimulating && lastEditedField === 'to' && (
|
||||
<FullLoadingScreen
|
||||
|
||||
@@ -1817,6 +1817,7 @@
|
||||
"newSwap": "Neuer Swap",
|
||||
"loadingPool": "Swap-Informationen werden geladen...",
|
||||
"fromBalance": "Ich habe {{amount}}",
|
||||
"fromBalanceHidden": "Ich habe",
|
||||
"toBalance": "Ich möchte",
|
||||
"min": "MIN",
|
||||
"half": "HALB",
|
||||
|
||||
@@ -1835,6 +1835,7 @@
|
||||
"newSwap": "New Swap",
|
||||
"loadingPool": "Loading swap information...",
|
||||
"fromBalance": "I have {{amount}}",
|
||||
"fromBalanceHidden": "I have",
|
||||
"toBalance": "I want",
|
||||
"min": "MIN",
|
||||
"half": "HALF",
|
||||
|
||||
@@ -1663,6 +1663,7 @@
|
||||
"newSwap": "Nuevo swap",
|
||||
"loadingPool": "Cargando información del swap...",
|
||||
"fromBalance": "Tengo {{amount}}",
|
||||
"fromBalanceHidden": "Tengo",
|
||||
"toBalance": "Quiero",
|
||||
"min": "MIN",
|
||||
"half": "MITAD",
|
||||
|
||||
@@ -1798,6 +1798,7 @@
|
||||
"newSwap": "Nouveau swap",
|
||||
"loadingPool": "Chargement des informations de swap...",
|
||||
"fromBalance": "J’ai {{amount}}",
|
||||
"fromBalanceHidden": "J’ai",
|
||||
"toBalance": "Je veux",
|
||||
"min": "MIN",
|
||||
"half": "MOITIÉ",
|
||||
|
||||
@@ -1837,6 +1837,7 @@
|
||||
"newSwap": "Nuovo swap",
|
||||
"loadingPool": "Caricamento informazioni swap...",
|
||||
"fromBalance": "Ho {{amount}}",
|
||||
"fromBalanceHidden": "Ho",
|
||||
"toBalance": "Voglio",
|
||||
"min": "MIN",
|
||||
"half": "METÀ",
|
||||
|
||||
@@ -1834,6 +1834,7 @@
|
||||
"newSwap": "Nova troca",
|
||||
"loadingPool": "Carregando...",
|
||||
"fromBalance": "Tenho {{amount}}",
|
||||
"fromBalanceHidden": "Tenho",
|
||||
"toBalance": "Quero",
|
||||
"min": "MIN",
|
||||
"half": "METADE",
|
||||
|
||||
@@ -1806,6 +1806,7 @@
|
||||
"newSwap": "Новый обмен",
|
||||
"loadingPool": "Загрузка информации о свопе...",
|
||||
"fromBalance": "У меня есть {{amount}}",
|
||||
"fromBalanceHidden": "У меня есть",
|
||||
"toBalance": "Я хочу",
|
||||
"min": "МИН",
|
||||
"half": "ПОЛОВИНА",
|
||||
|
||||
@@ -1798,6 +1798,7 @@
|
||||
"newSwap": "Ny swap",
|
||||
"loadingPool": "Laddar swap-information...",
|
||||
"fromBalance": "Jag har {{amount}}",
|
||||
"fromBalanceHidden": "Jag har",
|
||||
"toBalance": "Jag vill",
|
||||
"min": "MIN",
|
||||
"half": "HALV",
|
||||
|
||||
Reference in New Issue
Block a user