Skip to content

Commit

Permalink
feat: add user positions component back at bottom of grid
Browse files Browse the repository at this point in the history
  • Loading branch information
chambaz committed Nov 28, 2023
1 parent 920241b commit 43ab242
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,12 @@ import { MrgnTooltip } from "~/components/common";

import { LendingModes } from "~/types";

const UserPositions = dynamic(async () => (await import("~/components/desktop/UserPositions")).UserPositions, {
ssr: false,
});

const AssetsList = () => {
const { connected } = useWalletContext();
const { connected, walletAddress } = useWalletContext();
const [isStoreInitialized, extendedBankInfos, nativeSolBalance, selectedAccount] = useMrgnlendStore((state) => [
state.initialized,
state.extendedBankInfos,
Expand Down Expand Up @@ -646,6 +650,8 @@ const AssetsList = () => {
</Card>
</div>

{walletAddress && <UserPositions />}

<LSTDialog
variant={lstDialogVariant}
open={isLSTDialogOpen}
Expand Down

0 comments on commit 43ab242

Please sign in to comment.