Skip to content

Commit

Permalink
fix: resolve issue with dynamic
Browse files Browse the repository at this point in the history
  • Loading branch information
george-hub331 committed Jun 23, 2024
1 parent a42b3e9 commit 849a78a
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 1 deletion.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
"mongoose": "^8.4.3",
"postcss": "^8.4.38",
"sharp": "^0.33.4",
"starknet": "latest",
"vercel": "latest"
}
}
5 changes: 4 additions & 1 deletion packages/nextjs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,15 @@
"format:check": "prettier --check ."
},
"dependencies": {
"@dynamic-labs/sdk-react-core": "^2.2.4",
"@heroicons/react": "^2.1.3",
"@radix-ui/react-icons": "1.3.0",
"@radix-ui/themes": "2.0.3",
"@starknet-react/chains": "^0.1.7",
"@starknet-react/core": "^2.8.2",
"abi-wan-kanabi": "^2.2.2",
"axios": "^1.7.2",
"bignumber.js": "^9.1.2",
"blo": "^1.1.1",
"daisyui": "^4.7.3",
"ethers": "^6.12.0",
Expand All @@ -32,7 +35,7 @@
"react-copy-to-clipboard": "^5.1.0",
"react-dom": "^18",
"react-hot-toast": "^2.4.1",
"starknet": "5.25.0",
"starknet": "^6.10.0",
"starknet-dev": "npm:[email protected]",
"type-fest": "^4.6.0",
"usehooks-ts": "^2.13.0",
Expand Down
16 changes: 16 additions & 0 deletions packages/nextjs/utils/dynamic.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import { DynamicContextProvider } from "@dynamic-labs/sdk-react-core";

const Dynamic = ({ children }: { children: JSX.Element }) => {

return (
<DynamicContextProvider
settings={{
environmentId: process.env.DYNAMIC || "",
}}
>
{children}
</DynamicContextProvider>
);
}

export default Dynamic;

0 comments on commit 849a78a

Please sign in to comment.