commit
e2fc2b73c9
@ -1,5 +1,6 @@
|
|||||||
import ThemeRegistry from "@/config/ThemeRegistry";
|
import ThemeRegistry from "@/config/ThemeRegistry";
|
||||||
import type { Metadata } from "next";
|
import type { Metadata } from "next";
|
||||||
|
import ReduxProvider from "./redux/ReduxProvider";
|
||||||
import "../styles/globals.scss";
|
import "../styles/globals.scss";
|
||||||
|
|
||||||
export const metadata: Metadata = {
|
export const metadata: Metadata = {
|
||||||
@ -15,7 +16,9 @@ export default function RootLayout({
|
|||||||
return (
|
return (
|
||||||
<html lang="en">
|
<html lang="en">
|
||||||
<body>
|
<body>
|
||||||
|
<ReduxProvider>
|
||||||
<ThemeRegistry>{children}</ThemeRegistry>
|
<ThemeRegistry>{children}</ThemeRegistry>
|
||||||
|
</ReduxProvider>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
);
|
);
|
||||||
|
|||||||
7
payment-iq/app/redux/ReduxProvider.tsx
Normal file
7
payment-iq/app/redux/ReduxProvider.tsx
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
"use client";
|
||||||
|
import { Provider } from "react-redux";
|
||||||
|
import { store } from "./store";
|
||||||
|
|
||||||
|
export default function ReduxProvider({ children }: { children: React.ReactNode }) {
|
||||||
|
return <Provider store={store}>{children}</Provider>;
|
||||||
|
}
|
||||||
Loading…
x
Reference in New Issue
Block a user