Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
({
account,
isValue,
disabled,
}: {
account: AccountLike,
isValue?: boolean,
disabled?: boolean,
}) => {
const currency = getAccountCurrency(account)
const unit = getAccountUnit(account)
const name = getAccountName(account)
return (
{!isValue && account.type === 'TokenAccount' ? tokenTick : null}
{name}
const AccountFooter = ({ account, parentAccount, status }: Props) => {
const currency = getAccountCurrency(account)
const mainAccount = getMainAccount(account, parentAccount)
const accountUnit = getAccountUnit(mainAccount)
return (
<label>
</label>
{accountUnit && (
render() {
const { account, parentAccount } = this.props
const currency = getAccountCurrency(account)
const unit = getAccountUnit(account)
const name = getAccountName(account)
let title
switch (account.type) {
case 'Account':
case 'AccountChild':
title = currency.name
break
case 'TokenAccount':
title = 'token'
break
default:
title = ''
}
render() {
const {
operation,
account,
parentAccount,
multipleAccounts,
isLast,
} = this.props;
const amount = getOperationAmountNumber(operation);
const valueColor = amount.isNegative() ? colors.darkBlue : colors.green;
const currency = getAccountCurrency(account);
const unit = getAccountUnit(account);
const text = ;
const isOptimistic = operation.blockHeight === null;
const spinner = (
render() {
const { account, parentAccount, t, operation, withAccount, text } = this.props
const isOptimistic = operation.blockHeight === null
const currency = getAccountCurrency(account)
const unit = getAccountUnit(account)
return (
{withAccount && }
)
}
[...new Set(flattenAccounts(accounts).map(a => getAccountCurrency(a)))].sort((a, b) =>
a.name.localeCompare(b.name),
account,
parentAccount,
t,
counterValue,
selectedTimeRange,
countervalueFirst,
setCountervalueFirst,
}: Props) => {
const mainAccount = account ? getMainAccount(account, parentAccount) : null
const bgColor = useTheme('colors.palette.background.paper')
if (!account || !mainAccount) {
return
}
const currency = getAccountCurrency(account)
const color = getCurrencyColor(currency, bgColor)
return (
uniq(flattenAccounts(accounts).map(a => getAccountCurrency(a))).sort(
(a, b) => a.name.localeCompare(b.name),
render() {
const {
account,
parentAccount,
navigation,
readOnlyModeEnabled,
} = this.props;
if (!account) return null;
const { verified, error, isModalOpened, onModalHide, zoom } = this.state;
const { width } = getWindowDimensions();
const unsafe = !navigation.getParam("deviceId");
const allowNavigation = navigation.getParam("allowNavigation");
const QRSize = Math.round(width / 1.8 - 16);
const mainAccount = getMainAccount(account, parentAccount);
const currency = getAccountCurrency(account);
return (
{allowNavigation ? null : (
<>
)}
subAccounts.forEach(a => {
track('SyncSuccessToken', {
tokenId: getAccountCurrency(a).id,
tokenTicker: getAccountCurrency(a).ticker,
operationsLength: a.operations.length,
parentCurrencyName: account.currency.name,
parentDerivationMode: account.derivationMode,
})
})
}