Skip to content

Commit

Permalink
🐛 Fix React providers imports
Browse files Browse the repository at this point in the history
  • Loading branch information
srod committed Dec 12, 2024
1 parent 72272e2 commit 4fe5f67
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 16 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import {
NexusConfigProvider,
NexusIFrameClientProvider,
FrakConfigProvider,
FrakIFrameClientProvider,
} from "@frak-labs/react-sdk";
import type { PropsWithChildren } from "react";

Expand All @@ -15,8 +15,8 @@ export function FrakProvider({ children }: PropsWithChildren) {
};

return (
<NexusConfigProvider config={frakWalletSdkConfig}>
<NexusIFrameClientProvider>{children}</NexusIFrameClientProvider>
</NexusConfigProvider>
<FrakConfigProvider config={frakWalletSdkConfig}>
<FrakIFrameClientProvider>{children}</FrakIFrameClientProvider>
</FrakConfigProvider>
);
}
10 changes: 5 additions & 5 deletions example/wallet-ethcc/app/module/common/provider/FrakProvider.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import {
NexusConfigProvider,
NexusIFrameClientProvider,
FrakConfigProvider,
FrakIFrameClientProvider,
} from "@frak-labs/react-sdk";
import type { PropsWithChildren } from "react";

Expand All @@ -14,8 +14,8 @@ export function FrakProvider({ children }: PropsWithChildren) {
};

return (
<NexusConfigProvider config={frakWalletSdkConfig}>
<NexusIFrameClientProvider>{children}</NexusIFrameClientProvider>
</NexusConfigProvider>
<FrakConfigProvider config={frakWalletSdkConfig}>
<FrakIFrameClientProvider>{children}</FrakIFrameClientProvider>
</FrakConfigProvider>
);
}
12 changes: 6 additions & 6 deletions packages/dashboard/src/module/common/provider/RootProvider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

import { frakWalletSdkConfig } from "@/context/frak-wallet/config";
import {
NexusConfigProvider,
NexusIFrameClientProvider,
FrakConfigProvider,
FrakIFrameClientProvider,
} from "@frak-labs/react-sdk";
import { jotaiStore } from "@module/atoms/store";
import { createSyncStoragePersister } from "@tanstack/query-sync-storage-persister";
Expand Down Expand Up @@ -55,12 +55,12 @@ export function RootProvider({ children }: PropsWithChildren) {
client={queryClient}
persistOptions={persistOptions}
>
<NexusConfigProvider config={frakWalletSdkConfig}>
<NexusIFrameClientProvider>
<FrakConfigProvider config={frakWalletSdkConfig}>
<FrakIFrameClientProvider>
<ReactQueryDevtools initialIsOpen={false} />
{children}
</NexusIFrameClientProvider>
</NexusConfigProvider>
</FrakIFrameClientProvider>
</FrakConfigProvider>
</PersistQueryClientProvider>
</Provider>
);
Expand Down

0 comments on commit 4fe5f67

Please sign in to comment.