diff options
author | 2024-08-25 04:01:52 +0100 | |
---|---|---|
committer | 2024-08-25 04:01:52 +0100 | |
commit | 189c35b496a623f4a9c28b2f415533e23cce613c (patch) | |
tree | de4bb790e95ca6f916212033d875730e8c4d3f7c | |
parent | Add redux store and authorization slice (diff) |
Wrap app in Redux Provider
-rw-r--r-- | thallium-frontend/src/main.tsx | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/thallium-frontend/src/main.tsx b/thallium-frontend/src/main.tsx index d063333..2bb7e26 100644 --- a/thallium-frontend/src/main.tsx +++ b/thallium-frontend/src/main.tsx @@ -2,10 +2,14 @@ import { StrictMode } from "react"; import { createRoot } from "react-dom/client"; import App from "./App.tsx"; import "@fontsource-variable/fira-code"; +import { Provider } from "react-redux"; +import store from "./store"; // eslint-disable-next-line @typescript-eslint/no-non-null-assertion createRoot(document.getElementById("root")!).render( <StrictMode> - <App /> + <Provider store={store}> + <App /> + </Provider> </StrictMode>, ); |