Skip to content

Commit

Permalink
feat: add use client directives to wallet components
Browse files Browse the repository at this point in the history
  • Loading branch information
roushou committed Jun 21, 2024
1 parent d58ce10 commit 03db687
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/fair-yaks-promise.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@coinbase/onchainkit": patch
---

feat: add `use client` directives to wallet components
2 changes: 2 additions & 0 deletions src/wallet/components/ConnectAccount.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
'use client';

import { useCallback } from 'react';
import { useAccount, useConnect, useDisconnect } from 'wagmi';
import type { ConnectAccountReact } from '../types';
Expand Down
2 changes: 2 additions & 0 deletions src/wallet/components/Wallet.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
'use client';

import { Children, useMemo } from 'react';
import { ConnectAccount } from './ConnectAccount';
import { WalletDropdown } from './WalletDropdown';
Expand Down
2 changes: 2 additions & 0 deletions src/wallet/components/WalletDropdown.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
'use client';

import { Children, useMemo } from 'react';
import { Identity } from '../../identity/components/Identity';
import type { WalletDropdownReact } from '../types';
Expand Down

0 comments on commit 03db687

Please sign in to comment.