Skip to content

Commit

Permalink
docs(react): update example for 0.1.0-rc.3
Browse files Browse the repository at this point in the history
  • Loading branch information
tim-hm committed Aug 1, 2024
1 parent c08eb02 commit e7aae64
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions examples/react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@
"private": true,
"type": "module",
"scripts": {
"start": "webpack serve --mode development"
"dev": "webpack serve --mode development"
},
"dependencies": {
"@emotion/react": "^11.13.0",
"@emotion/styled": "^11.13.0",
"@mui/joy": "^5.0.0-beta.48",
"@nillion/client-core": "0.1.0-rc.2",
"@nillion/client-react-hooks": "0.1.0-rc.2",
"@nillion/client-vms": "0.1.0-rc.2",
"@nillion/client-core": "0.1.0-rc.3",
"@nillion/client-react-hooks": "0.1.0-rc.3",
"@nillion/client-vms": "0.1.0-rc.3",
"@tanstack/react-query-devtools": "^5.51.16",
"react": "^18.3.1",
"react-dom": "^18.3.1",
Expand Down
4 changes: 2 additions & 2 deletions examples/react/src/nillion.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ import { NillionClient } from "@nillion/client-vms";

export const client = NillionClient.create({
network: NamedNetwork.enum.Devnet,
userSeed: "nillion-devnet",
nodeSeed: "nillion-devnet",

overrides: async () => {
// first account when running `nillion-devnet` with default seed
Expand All @@ -15,6 +13,8 @@ export const client = NillionClient.create({
return {
endpoint: "http://localhost:8080/nilchain",
signer,
userSeed: "nillion-devnet",
nodeSeed: "nillion-devnet",
};
},
});
4 changes: 2 additions & 2 deletions examples/react/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
"esnext"
],
"jsx": "react",
"target": "es2022",
"module": "es2022",
"target": "esnext",
"module": "esnext",
"moduleResolution": "bundler"
}
}

0 comments on commit e7aae64

Please sign in to comment.