diff --git a/apps/marginfi-v2-ui/src/components/common/Portfolio/hooks/use-reward-simulation.tsx b/apps/marginfi-v2-ui/src/components/common/Portfolio/hooks/use-reward-simulation.tsx index 2cdedf634f..85d11dd1dc 100644 --- a/apps/marginfi-v2-ui/src/components/common/Portfolio/hooks/use-reward-simulation.tsx +++ b/apps/marginfi-v2-ui/src/components/common/Portfolio/hooks/use-reward-simulation.tsx @@ -1,8 +1,8 @@ import React from "react"; -import { PublicKey, TransactionInstruction, TransactionMessage, VersionedTransaction } from "@solana/web3.js"; +import { PublicKey, VersionedTransaction } from "@solana/web3.js"; -import { makeBundleTipIx, MarginfiAccountWrapper, MarginfiClient } from "@mrgnlabs/marginfi-client-v2"; +import { MarginfiAccountWrapper, MarginfiClient } from "@mrgnlabs/marginfi-client-v2"; import { ActionMessageType, captureSentryException, TOKEN_2022_MINTS } from "@mrgnlabs/mrgn-utils"; import { ExtendedBankInfo } from "@mrgnlabs/marginfi-v2-ui-state"; import { diff --git a/apps/marginfi-v2-ui/src/components/common/Portfolio/lending-portfolio.tsx b/apps/marginfi-v2-ui/src/components/common/Portfolio/lending-portfolio.tsx index 1edfeb28f7..5804c009ca 100644 --- a/apps/marginfi-v2-ui/src/components/common/Portfolio/lending-portfolio.tsx +++ b/apps/marginfi-v2-ui/src/components/common/Portfolio/lending-portfolio.tsx @@ -3,7 +3,7 @@ import Link from "next/link"; import { useRouter } from "next/router"; import { PublicKey, VersionedTransaction } from "@solana/web3.js"; -import { IconInfoCircle } from "@tabler/icons-react"; +import { IconInfoCircle, IconUserPlus } from "@tabler/icons-react"; import { numeralFormatter } from "@mrgnlabs/mrgn-common"; import { usdFormatter, usdFormatterDyn } from "@mrgnlabs/mrgn-common"; @@ -253,9 +253,10 @@ export const LendingPortfolio = () => { onClick={() => { setIsWalletOpen(true); }} - className="w-full font-light h-[32px] py-1.5 pl-2 pr-8 text-sm cursor-pointer hover:bg-background-gray-dark hover:text-primary" - variant="ghost" + className="flex items-center mt-1 w-full font-light h-[32px] py-1.5 pl-2 pr-8 text-sm cursor-pointer hover:bg-background-gray-dark hover:text-primary" + variant="outline" > + Add account @@ -284,20 +285,18 @@ export const LendingPortfolio = () => { Collect rewards ) : ( - + ) ) : ( Calculating rewards - )}{" "} + )} - + {EMISSION_MINT_INFO_MAP.size === 0 ? "There are currently no banks that are outputting rewards." : rewards && rewards.totalReward > 0 @@ -307,7 +306,7 @@ export const LendingPortfolio = () => { : `You do not have any outstanding rewards. Deposit into a bank with emissions to earn additional rewards on top of yield. Banks with emissions: ${[ ...EMISSION_MINT_INFO_MAP.keys(), ].join(", ")}`} - {" "} +