Skip to content

Commit

Permalink
update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
juliancwirko committed Dec 24, 2023
1 parent e8dc4c2 commit d64b25e
Show file tree
Hide file tree
Showing 4 changed files with 525 additions and 266 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
### [9.4.1](https://github.com/xdevguild/nextjs-dapp-template/releases/tag/v9.4.1) (2023-12-24)
- update useElven with bugfixes
- update other dependencies

### [9.4.0](https://github.com/xdevguild/nextjs-dapp-template/releases/tag/v9.4.0) (2023-12-03)
- update useElven and add deploy a smart contract demo

Expand Down
7 changes: 5 additions & 2 deletions components/demo/sign-message-demo.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
'use client';

import { useSignMessage } from '@useelven/core';
import { useLoginInfo, useSignMessage } from '@useelven/core';
import { Card, CardContent, CardFooter } from '@/components/ui/card';
import { Button } from '@/components/ui/button';

export const SimpleSignMessageDemo = () => {
const { loginMethod } = useLoginInfo();
const { signMessage, pending, signature } = useSignMessage();

const handleSignMessage = () => {
Expand Down Expand Up @@ -43,7 +44,9 @@ export const SimpleSignMessageDemo = () => {
disabled={pending}
onClick={handleSignMessage}
>
Sign a message
{pending
? `Pending... (confirmation with ${loginMethod})`
: 'Sign a message'}
</Button>
</CardFooter>
</Card>
Expand Down
Loading

0 comments on commit d64b25e

Please sign in to comment.