Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixing useMemo and balance in SOL #562

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions content/courses/intro-to-solana/interact-with-wallets.md
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ ensure this is to wrap your entire app in `ConnectionProvider` and

```tsx
import { NextPage } from "next";
import { FC, ReactNode } from "react";
import { FC, ReactNode, useMemo } from "react";
import {
ConnectionProvider,
WalletProvider,
Expand Down Expand Up @@ -159,7 +159,7 @@ full-featured wallet experience is to use `WalletModalProvider` and

```tsx
import { NextPage } from "next";
import { FC, ReactNode } from "react";
import { FC, ReactNode, useMemo } from "react";
import {
ConnectionProvider,
WalletProvider,
Expand Down Expand Up @@ -267,7 +267,7 @@ export const BalanceDisplay: FC = () => {

return (
<div>
<p>{publicKey ? `Balance: ${balance / LAMPORTS_PER_SOL} SOL` : ""}</p>
<p>{publicKey ? `Balance: ${balance} SOL` : ""}</p>
mikemaccana marked this conversation as resolved.
Show resolved Hide resolved
</div>
);
};
Expand Down Expand Up @@ -426,7 +426,7 @@ To complete this component, add
ensure proper styling and behavior of the Wallet Adapter library components.

```tsx
import { FC, ReactNode } from "react";
import { FC, ReactNode, useMemo } from "react";
import {
ConnectionProvider,
WalletProvider,
Expand Down
Loading