Skip to content

Commit 81149d3

Browse files
authored
feat: add react-kit to ZeroDev example app (#164)
1 parent 398c93a commit 81149d3

17 files changed

Lines changed: 251 additions & 665 deletions

File tree

apps/zerodev-signer-demo/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
"@zerodev/sdk": "^5.0.0",
1717
"@zerodev/wallet-core": "workspace:*",
1818
"@zerodev/wallet-react": "workspace:*",
19+
"@zerodev/wallet-react-kit": "workspace:*",
1920
"class-variance-authority": "^0.7.1",
2021
"clsx": "^2.1.1",
2122
"lucide-react": "^0.545.0",

apps/zerodev-signer-demo/src/app/dashboard/page.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33

44
import { useQuery } from "@tanstack/react-query";
55
import { useAuthenticators } from "@zerodev/wallet-react";
6+
import { SignatureRequest } from "@zerodev/wallet-react-kit";
67
import {
78
Check,
89
Copy,
@@ -69,7 +70,7 @@ export default function DashboardPage() {
6970
retry: false,
7071
}
7172
)
72-
73+
7374
useEffect(() => {
7475
const loadBalance = async () => {
7576
if (address && isAddress(address)) {
@@ -135,6 +136,7 @@ export default function DashboardPage() {
135136
<>
136137
<ExportWalletModal isOpen={showExportModal} onClose={() => setShowExportModal(false)} />
137138
<ExportPrivateKeyModal isOpen={showExportPrivateKeyModal} onClose={() => setShowExportPrivateKeyModal(false)} />
139+
<SignatureRequest className='absolute right-0 top-20 w-[400px] h-[600px]' />
138140
<div className="min-h-screen bg-white">
139141
{/* Header */}
140142
<header className="bg-white border-b border-gray-100">

apps/zerodev-signer-demo/src/app/globals.css

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
@import "tailwindcss";
2+
@config "../../../../packages/react-kit/tailwind.config.ts";
3+
@source "../../../../packages/react-kit/src";
24

35
:root {
46
--background: #ffffff;
@@ -12,13 +14,6 @@
1214
--font-mono: var(--font-geist-mono);
1315
}
1416

15-
@media (prefers-color-scheme: dark) {
16-
:root {
17-
--background: #0a0a0a;
18-
--foreground: #ededed;
19-
}
20-
}
21-
2217
body {
2318
background: var(--background);
2419
color: var(--foreground);

0 commit comments

Comments
 (0)