Skip to content

Commit

Permalink
Merge pull request #32 from Qudusayo/readme-fix
Browse files Browse the repository at this point in the history
chore: sample code in readme
  • Loading branch information
fabianbormann committed Mar 17, 2023
2 parents 9d01c9f + f66f25a commit d4afee9
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions README.md
Expand Up @@ -25,13 +25,15 @@ npm i @cardano-foundation/cardano-connect-with-wallet
import { useCardano } from '@cardano-foundation/cardano-connect-with-wallet';

const YourGreatDApp = (props) => {
{ isEnabled,
isConnected,
enabledWallet,
stakeAddress,
signMessage,
connect,
disconnect } = useCardano();
const {
isEnabled,
isConnected,
enabledWallet,
stakeAddress,
signMessage,
connect,
disconnect
} = useCardano();

const onConnect = () => alert('Successfully connected!');

Expand Down

0 comments on commit d4afee9

Please sign in to comment.