1.0.0 • Published 3 years ago

@tezid/tezos-wallet-component-menu-tezid v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

@tezid/tezos-wallet-component-menu-tezid

TezID Menu for Tezos Wallet Component

NPM JavaScript Style Guide

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>
  ) 
}

screenshot

License

MIT © tezid

1.0.0

3 years ago