From cd8ea01f5101b18bb97c3b1f2fcdb37672344d05 Mon Sep 17 00:00:00 2001 From: "nature.xie" Date: Wed, 29 Nov 2023 11:35:49 +0800 Subject: [PATCH] remove usn link --- screens/Dashboard/index.tsx | 5 ++++- screens/Dashboard/supplyBorrowListMobile.tsx | 19 +++++++++++-------- 2 files changed, 15 insertions(+), 9 deletions(-) diff --git a/screens/Dashboard/index.tsx b/screens/Dashboard/index.tsx index 24cdfbc7..9356d99f 100644 --- a/screens/Dashboard/index.tsx +++ b/screens/Dashboard/index.tsx @@ -21,6 +21,7 @@ import DashboardOverview from "./dashboardOverview"; import { ConnectWalletButton } from "../../components/Header/WalletButton"; import SupplyBorrowListMobile from "./supplyBorrowListMobile"; import { AdjustButton, WithdrawButton, RepayButton, MarketButton } from "./supplyBorrowButtons"; +import { hiddenAssets } from "../../utils/config"; const Index = () => { const accountId = useAccountId(); @@ -194,7 +195,9 @@ const YourSupplied = ({ suppliedRows, accountId, total }) => { selectedRowIndex={selected?.index} actionRow={
- + {hiddenAssets.includes(selected?.data?.tokenId || "") ? null : ( + + )} {canUseAsCollateral && }
diff --git a/screens/Dashboard/supplyBorrowListMobile.tsx b/screens/Dashboard/supplyBorrowListMobile.tsx index f3d03e8e..cae3e0d9 100644 --- a/screens/Dashboard/supplyBorrowListMobile.tsx +++ b/screens/Dashboard/supplyBorrowListMobile.tsx @@ -7,6 +7,7 @@ import DashboardReward from "./dashboardReward"; import { formatTokenValue, formatUSDValue, millifyNumber } from "../../helpers/helpers"; import { AdjustButton, MarketButton, RepayButton, WithdrawButton } from "./supplyBorrowButtons"; import { NoDataMascot } from "../../components/Icons/Icons"; +import { hiddenAssets } from "../../utils/config"; const SupplyBorrowListMobile = ({ suppliedRows, borrowedRows, accountId }) => { const [tabIndex, setTabIndex] = useState(0); @@ -135,14 +136,16 @@ const SupplyItem = ({ data }) => { token
{data?.symbol}
- + {hiddenAssets.includes(data?.tokenId || "") ? null : ( + + )}