Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
…into 12-donate-modal
  • Loading branch information
carina-akaia committed Jun 14, 2024
2 parents 31f7908 + dbbd83a commit ac018d4
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions src/app/_layout/RootProvider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,16 @@ import { Provider as ReduxProvider } from "react-redux";
import { store } from "@/app/_store";
import { AuthProvider } from "@/modules/auth/providers/AuthProvider";

export const RootProvider = ({ children }: { children: React.ReactNode }) => {
export type RootProviderProps = {
children: React.ReactNode;
};

export const RootProvider: React.FC<RootProviderProps> = ({ children }) => {
return (
<ReduxProvider store={store}>
<NiceModalProvider>
<NiceModalProvider>
<ReduxProvider store={store}>
<AuthProvider>{children}</AuthProvider>
</NiceModalProvider>
</ReduxProvider>
</ReduxProvider>
</NiceModalProvider>
);
};

0 comments on commit ac018d4

Please sign in to comment.