Merge pull request #13 from mitchell131/redux-provider

redux provider
This commit is contained in:
Petropoulos Evangelos 2025-07-22 22:56:33 +03:00 committed by GitHub
commit e2fc2b73c9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 10 additions and 0 deletions

View File

@ -1,5 +1,6 @@
import ThemeRegistry from "@/config/ThemeRegistry";
import type { Metadata } from "next";
import ReduxProvider from "./redux/ReduxProvider";
import "../styles/globals.scss";
export const metadata: Metadata = {
@ -15,7 +16,9 @@ export default function RootLayout({
return (
<html lang="en">
<body>
<ReduxProvider>
<ThemeRegistry>{children}</ThemeRegistry>
</ReduxProvider>
</body>
</html>
);

View 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>;
}