Skip to content

Commit

Permalink
fix(ui-ux): fixed token detail screen to hide loan data in evm domain (
Browse files Browse the repository at this point in the history
…#4089)

* fix(ui-ux): fixed Send screen displays no assets displayed issue

* updated token listing condition

* fixed token detail screen to hide load data in evm domain

---------

Co-authored-by: Lyka Labrada <[email protected]>
  • Loading branch information
fullstackninja864 and lykalabrada authored Oct 20, 2023
1 parent 1f71430 commit c6ecdca
Showing 1 changed file with 15 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ export function TokenDetailScreen({ route, navigation }: Props): JSX.Element {

// usdAmount for crypto tokens, undefined for DFI token
const { usdAmount } = route.params.token;

const isEvmDomain = domain === DomainType.EVM;
const onNavigateLiquidity = ({
destination,
pair,
Expand Down Expand Up @@ -186,21 +186,23 @@ export function TokenDetailScreen({ route, navigation }: Props): JSX.Element {
token={token}
border
usdAmount={usdAmount ?? new BigNumber(0)}
isEvmDomain={domain === DomainType.EVM}
isEvmDomain={isEvmDomain}
/>

<View style={tailwind("p-5 pb-12")}>
<TokenBreakdownDetailsV2
hasFetchedToken={hasFetchedToken}
availableAmount={new BigNumber(DFIUnified.amount)}
availableValue={availableValue}
testID="dfi"
dfiUtxo={DFIUtxo}
dfiToken={DFIToken}
token={token}
usdAmount={usdAmount ?? new BigNumber(0)}
pair={pair}
/>
{!isEvmDomain && (
<TokenBreakdownDetailsV2
hasFetchedToken={hasFetchedToken}
availableAmount={new BigNumber(DFIUnified.amount)}
availableValue={availableValue}
testID="dfi"
dfiUtxo={DFIUtxo}
dfiToken={DFIToken}
token={token}
usdAmount={usdAmount ?? new BigNumber(0)}
pair={pair}
/>
)}
{token.symbol === "DFI" && token.id !== "0_evm" && (
<ThemedViewV2
dark={tailwind("border-mono-dark-v2-300")}
Expand Down

0 comments on commit c6ecdca

Please sign in to comment.