From 3ceead8e67c344a672e19c883c049638cc353ce9 Mon Sep 17 00:00:00 2001 From: pierregee Date: Thu, 7 Sep 2023 22:53:14 +0800 Subject: [PATCH 1/2] fix(ui-ux): redirect of dxchf --- src/pages/dex/_components/PoolPairsTable.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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 }`, From 8985dd5090db4f14e9bffd1ffa064621fb778e7c Mon Sep 17 00:00:00 2001 From: pierregee Date: Fri, 8 Sep 2023 09:36:50 +0800 Subject: [PATCH 2/2] fix mobile --- src/pages/dex/_components/PoolPairsCards.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 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 }`}