From 61bdec145b512a5c981b6414db1ebc2309421bdd Mon Sep 17 00:00:00 2001 From: keannu125 Date: Sun, 26 Feb 2023 22:34:13 +0800 Subject: [PATCH] Readded Redux to track login state --- src/Features/Redux/Store/Store.tsx | 5 +++++ src/index.tsx | 11 ++++++++--- 2 files changed, 13 insertions(+), 3 deletions(-) create mode 100644 src/Features/Redux/Store/Store.tsx diff --git a/src/Features/Redux/Store/Store.tsx b/src/Features/Redux/Store/Store.tsx new file mode 100644 index 0000000..494bd81 --- /dev/null +++ b/src/Features/Redux/Store/Store.tsx @@ -0,0 +1,5 @@ +import { configureStore } from "@reduxjs/toolkit"; + +export default configureStore({ + reducer: {}, +}); diff --git a/src/index.tsx b/src/index.tsx index 969107b..3cc0b28 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -10,6 +10,9 @@ import Login from "./Routes/Login/Login"; import { QueryClient, QueryClientProvider } from "react-query"; +import { Provider } from "react-redux"; +import Store from "./Features/Redux/Store/Store"; + const queryClient = new QueryClient(); const router = createBrowserRouter([ @@ -33,9 +36,11 @@ const root = ReactDOM.createRoot( root.render( - - - + + + + + );