Skip to content

Commit

Permalink
code split up
Browse files Browse the repository at this point in the history
  • Loading branch information
arch1995 committed May 7, 2024
1 parent 8da9de6 commit cc799e5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/hooks/modal-react-hooks/src/Web3AuthProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,6 @@ import { Web3AuthInnerProvider } from "./context/Web3AuthInnerContext";
import { Web3AuthProviderProps } from "./interfaces";

export function Web3AuthProvider({ config, children }: PropsWithChildren<Web3AuthProviderProps>) {
return createElement(Web3AuthInnerProvider, { config }, createElement(WalletServicesProvider, null, children));
const wsElement = createElement(WalletServicesProvider, {}, children);
return createElement(Web3AuthInnerProvider, { config }, wsElement);
}

0 comments on commit cc799e5

Please sign in to comment.