ISSUE-011 - Initial Redux work.
Installed reduxjs/toolkit. Added first slice and the basic store for the project.
This commit is contained in:
1 parent
9dd279520a
commit
3add2f3237
7 files changed
+120
-14
No files matched your search
+14
-10
@@ -1,5 +1,6 @@
|
||||
import React from "react";
|
||||
import ReactDOM from "react-dom";
|
||||
import { Provider } from "react-redux";
|
||||
import { BrowserRouter, Route, Routes } from "react-router-dom";
|
||||
import { ThemeProvider } from "styled-components";
|
||||
|
||||
@@ -9,19 +10,22 @@ import App from "./App";
|
||||
import Broadcast from "./routes/BroadcastRoute";
|
||||
import { GlobalStyle, theme } from "./shared/theme";
|
||||
import { GlobalFonts } from "./fonts";
|
||||
import { store } from "./store";
|
||||
|
||||
ReactDOM.render(
|
||||
<React.StrictMode>
|
||||
<ThemeProvider theme={theme}>
|
||||
<GlobalStyle theme={theme} />
|
||||
<GlobalFonts />
|
||||
<BrowserRouter>
|
||||
<Routes>
|
||||
<Route path="/" element={<App />} />
|
||||
<Route path="/broadcast" element={<Broadcast />} />
|
||||
</Routes>
|
||||
</BrowserRouter>
|
||||
</ThemeProvider>
|
||||
<Provider store={store}>
|
||||
<ThemeProvider theme={theme}>
|
||||
<GlobalStyle theme={theme} />
|
||||
<GlobalFonts />
|
||||
<BrowserRouter>
|
||||
<Routes>
|
||||
<Route path="/" element={<App />} />
|
||||
<Route path="/broadcast" element={<Broadcast />} />
|
||||
</Routes>
|
||||
</BrowserRouter>
|
||||
</ThemeProvider>
|
||||
</Provider>
|
||||
</React.StrictMode>,
|
||||
document.getElementById("root"),
|
||||
);
|
||||
Reference in new issue
Block a user