Hooks
useOpenWalletModal
Hook for opening the wallet inventory modal
Import
Usage
Return Type: UseOpenWalletModalReturnType
The hook returns an object with the following properties:
Properties
setOpenWalletModal
(isOpen: boolean) => void
Function to open or close the Wallet modal.
Parameters:
Parameter | Type | Description |
---|---|---|
isOpen | boolean | Whether the modal should be open (true ) or closed (false ) |
openWalletModalState
boolean
The current open state of the Wallet modal (true
if open, false
if closed).
Notes
This hook provides methods to control the Wallet Inventory modal that allows users to view their tokens and NFTs. The Wallet modal displays all tokens, NFTs and collectibles present in the connected wallet.
Was this page helpful?