File tree Expand file tree Collapse file tree 1 file changed +0
-10
lines changed
apps/namadillo/src/App/Layout Expand file tree Collapse file tree 1 file changed +0
-10
lines changed Original file line number Diff line number Diff line change 11import { connectedWalletsAtom } from "atoms/integrations" ;
2- import { useWalletManager } from "hooks/useWalletManager" ;
32import { wallets } from "integrations" ;
43import { KeplrWalletManager } from "integrations/Keplr" ;
54import { useAtom } from "jotai" ;
6- import { useEffect } from "react" ;
75import { AccountIconButton } from "./AccountIconButton" ;
86import { DisconnectAccountIcon } from "./DisconnectAccountIcon" ;
97
108export const KeplrAccount = ( ) : JSX . Element => {
119 const [ connectedWallets , setConnectedWallets ] = useAtom ( connectedWalletsAtom ) ;
12- const keplrWallet = new KeplrWalletManager ( ) ;
13- const { walletAddress : connectedKeplrAddress } =
14- useWalletManager ( keplrWallet ) ;
15-
16- useEffect ( ( ) => {
17- if ( ! connectedKeplrAddress )
18- setConnectedWallets ( ( obj ) => ( { ...obj , [ keplrWallet . key ] : false } ) ) ;
19- } , [ connectedKeplrAddress ] ) ;
2010
2111 if ( ! connectedWallets . keplr ) {
2212 return < > </ > ;
You can’t perform that action at this time.
0 commit comments