bridge_ui: added symbol to Ethereum quick migrate

Change-Id: Ida896ed16984feaa7d1e7bf102cb1502757969a2
This commit is contained in:
Chase Moran 2021-10-15 14:27:46 -04:00 committed by Evan Gray
parent 42acf3f098
commit 5b8bbd4269
1 changed files with 12 additions and 2 deletions

View File

@ -108,6 +108,8 @@ function EvmMigrationLineItem({
const [migrationIsProcessing, setMigrationIsProcessing] = useState(false);
const [transaction, setTransaction] = useState("");
const [error, setError] = useState("");
const fromSymbol = poolInfo?.data?.fromSymbol;
const toSymbol = poolInfo?.data?.toSymbol;
const sufficientPoolBalance =
poolInfo.data &&
@ -188,7 +190,11 @@ function EvmMigrationLineItem({
<Typography className={classes.balance}>
{poolInfo.data.fromWalletBalance}
</Typography>
<SmartAddress chainId={chainId} address={poolInfo.data.fromAddress} />
<SmartAddress
chainId={chainId}
address={poolInfo.data.fromAddress}
symbol={fromSymbol || undefined}
/>
</div>
<div>
<Typography variant="body2" color="textSecondary">
@ -203,7 +209,11 @@ function EvmMigrationLineItem({
<Typography className={classes.balance}>
{poolInfo.data.fromWalletBalance}
</Typography>
<SmartAddress chainId={chainId} address={poolInfo.data.toAddress} />
<SmartAddress
chainId={chainId}
address={poolInfo.data.toAddress}
symbol={toSymbol || undefined}
/>
</div>
<div className={classes.convertButton}>
<ButtonWithLoader