@tezid/tezos-wallet-component-menu-tezid
v1.0.0
Published
TezID Menu for Tezos Wallet Component
Downloads
3
Readme
@tezid/tezos-wallet-component-menu-tezid
TezID Menu for Tezos Wallet Component
TezID Menu Item for Tezos Wallet Component. It will query the TezID API for proofs registered to the passed address & network. It will display these items as a menu item under the Tezos Wallet.
See screenshot below.
Install
npm install --save @tezid/tezos-wallet-component-menu-tezid
Usage
import { TezosWallet } from 'tezos-wallet-component'
import { TezosWalletMenuTezID } from '@tezid/tezos-wallet-component-menu-tezid'
import 'tezos-wallet-component/dist/index.css'
import '@tezid/tezos-wallet-component-menu-tezid/dist/index.css'
const App = () => {
return (
<div className="App">
<TezosWallet
address={wallet?.address}
balance={wallet?.balance}
onConnectWallet={handleConnect}
onDisconnectWallet={handleDisconnect}
showMenu={showMenu}
onToggleMenu={() => setShowMenu(!showMenu)}
>
<TezosWalletMenuTezID address={wallet?.address} network="mainnet" />
</TezosWallet>
</div>
)
}
License
MIT © tezid