mirror of
https://github.com/kremalicious/asi-calculator.git
synced 2024-12-22 17:33:18 +01:00
UX tweaks for migration tool scenario
* hide conversions not supported by migration tool
This commit is contained in:
parent
fc23958849
commit
62725c8463
@ -51,8 +51,12 @@ export function SwapResults({
|
|||||||
: amount
|
: amount
|
||||||
: amountInUsd / prices.fet.usd
|
: amountInUsd / prices.fet.usd
|
||||||
|
|
||||||
|
const showOcean = !isMigration || (isMigration && tokenSelected === 'ocean')
|
||||||
|
const showAgix = !isMigration || (isMigration && tokenSelected === 'agix')
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
|
{showOcean ? (
|
||||||
<Result
|
<Result
|
||||||
token={getTokenBySymbol('OCEAN')}
|
token={getTokenBySymbol('OCEAN')}
|
||||||
amount={amountToOceanUniswap || amountToOcean}
|
amount={amountToOceanUniswap || amountToOcean}
|
||||||
@ -68,7 +72,9 @@ export function SwapResults({
|
|||||||
isValidating={isValidatingToOcean || isValidatingPrices}
|
isValidating={isValidatingToOcean || isValidatingPrices}
|
||||||
isLoading={isLoadingToOcean || isLoadingPrices}
|
isLoading={isLoadingToOcean || isLoadingPrices}
|
||||||
/>
|
/>
|
||||||
|
) : null}
|
||||||
|
|
||||||
|
{showAgix ? (
|
||||||
<Result
|
<Result
|
||||||
token={getTokenBySymbol('AGIX')}
|
token={getTokenBySymbol('AGIX')}
|
||||||
amount={amountToAgixUniswap || amountToAgix}
|
amount={amountToAgixUniswap || amountToAgix}
|
||||||
@ -84,6 +90,7 @@ export function SwapResults({
|
|||||||
isValidating={isValidatingToAgix || isValidatingPrices}
|
isValidating={isValidatingToAgix || isValidatingPrices}
|
||||||
isLoading={isLoadingToAgix || isLoadingPrices}
|
isLoading={isLoadingToAgix || isLoadingPrices}
|
||||||
/>
|
/>
|
||||||
|
) : null}
|
||||||
|
|
||||||
<Result
|
<Result
|
||||||
token={getTokenBySymbol('FET')}
|
token={getTokenBySymbol('FET')}
|
||||||
|
Loading…
Reference in New Issue
Block a user