Skip to content

Commit

Permalink
remove usn link
Browse files Browse the repository at this point in the history
  • Loading branch information
xieqiancaosissi committed Nov 29, 2023
1 parent 33b26ea commit cd8ea01
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 9 deletions.
5 changes: 4 additions & 1 deletion screens/Dashboard/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down Expand Up @@ -194,7 +195,9 @@ const YourSupplied = ({ suppliedRows, accountId, total }) => {
selectedRowIndex={selected?.index}
actionRow={
<div className="flex gap-2 pb-6 table-action-row">
<MarketButton tokenId={selected?.data?.tokenId} />
{hiddenAssets.includes(selected?.data?.tokenId || "") ? null : (
<MarketButton tokenId={selected?.data?.tokenId} />
)}
<WithdrawButton tokenId={selected?.data?.tokenId} />
{canUseAsCollateral && <AdjustButton tokenId={selected?.data?.tokenId} />}
</div>
Expand Down
19 changes: 11 additions & 8 deletions screens/Dashboard/supplyBorrowListMobile.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -135,14 +136,16 @@ const SupplyItem = ({ data }) => {
<img src={data?.icon} width={26} height={26} alt="token" className="rounded-full" />
<div className="flex flex-col">
<div className="truncate h4b">{data?.symbol}</div>
<MarketButton
tokenId={data?.tokenId}
style={{
border: 0,
padding: 0,
fontSize: 12,
}}
/>
{hiddenAssets.includes(data?.tokenId || "") ? null : (
<MarketButton
tokenId={data?.tokenId}
style={{
border: 0,
padding: 0,
fontSize: 12,
}}
/>
)}
</div>
</div>

Expand Down

0 comments on commit cd8ea01

Please sign in to comment.