Skip to content

Commit

Permalink
fix: fix build issue
Browse files Browse the repository at this point in the history
  • Loading branch information
fabiorigam committed Nov 21, 2024
1 parent f2e74cb commit c0f9ad9
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
1 change: 1 addition & 0 deletions packages/dapp-kit-react-privy/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
"purge": "yarn clean && rm -rf node_modules"
},
"dependencies": {
"@vechain/dapp-kit-react": "*",
"@privy-io/react-auth": "1.83.1"
},
"devDependencies": {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { ReactNode } from "react";
import { PrivyProvider as BasePrivyProvider } from "@privy-io/react-auth";
import { DAppKitProvider } from "@vechain/dapp-kit-react";

type Props = {
children: ReactNode;
Expand Down Expand Up @@ -59,6 +60,7 @@ export const DAppKitPrivyProvider = ({
loginMethods,
appearance,
embeddedWallets,
dappKitConfig
}: Props) => {
return (
<BasePrivyProvider
Expand All @@ -72,7 +74,15 @@ export const DAppKitPrivyProvider = ({
},
}}
>
{children}
<DAppKitProvider
nodeUrl={dappKitConfig.nodeUrl}
genesis={dappKitConfig.genesis}
usePersistence
walletConnectOptions={dappKitConfig.walletConnectOptions}
themeMode={dappKitConfig.colorMode}
themeVariables={{}}>
{children}
</DAppKitProvider>
</BasePrivyProvider>
);
};

0 comments on commit c0f9ad9

Please sign in to comment.