From 1df73f12b02c8096a90d9547d73e082ed93f1df6 Mon Sep 17 00:00:00 2001 From: Pierre Gee Date: Fri, 8 Sep 2023 09:56:21 +0800 Subject: [PATCH] fix(ui-ux): redirect of dxchf (#1866) * fix(ui-ux): redirect of dxchf * fix mobile --- src/pages/dex/_components/PoolPairsCards.tsx | 5 +++-- src/pages/dex/_components/PoolPairsTable.tsx | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/src/pages/dex/_components/PoolPairsCards.tsx b/src/pages/dex/_components/PoolPairsCards.tsx index bd39be8ab..a76b27e48 100644 --- a/src/pages/dex/_components/PoolPairsCards.tsx +++ b/src/pages/dex/_components/PoolPairsCards.tsx @@ -70,7 +70,7 @@ export function PoolPairsCards({ sortKey, reverse: sortOrder === "desc", }), - [poolPairsPrices, sortKey, sortOrder] + [poolPairsPrices, sortKey, sortOrder], ); function changeSort(sortType: { @@ -131,7 +131,8 @@ export function PoolPairsCard({ poolPair.displaySymbol.includes("dUSDC") || poolPair.displaySymbol.includes("dBTC") || poolPair.displaySymbol.includes("dETH") || - poolPair.displaySymbol.includes("dEUROC") + poolPair.displaySymbol.includes("dEUROC") || + poolPair.displaySymbol.includes("dXCHF") ? poolPair.displaySymbol : poolPair.tokenA.displaySymbol }`} diff --git a/src/pages/dex/_components/PoolPairsTable.tsx b/src/pages/dex/_components/PoolPairsTable.tsx index 1fa741b7d..56cb0b5b5 100644 --- a/src/pages/dex/_components/PoolPairsTable.tsx +++ b/src/pages/dex/_components/PoolPairsTable.tsx @@ -36,7 +36,7 @@ export function PoolPairsTable({ sortKey, reverse: sortOrder === "desc", }), - [poolPairsPrices, sortKey, sortOrder] + [poolPairsPrices, sortKey, sortOrder], ); function changeSort(key: SortKeys): void { @@ -94,7 +94,8 @@ export function PoolPairsTable({ data.poolPair.displaySymbol.includes("dUSDC") || data.poolPair.displaySymbol.includes("dBTC") || data.poolPair.displaySymbol.includes("dETH") || - data.poolPair.displaySymbol.includes("dEUROC") + data.poolPair.displaySymbol.includes("dEUROC") || + data.poolPair.displaySymbol.includes("dXCHF") ? data.poolPair.displaySymbol : data.poolPair.tokenA.displaySymbol }`,