blob: 4c6bf8a199cc8c5e597e61d6c06b49ab877f93ce (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
import queryClient from "@/apis/queries";
import store from "@/modules/redux/store";
import "@/styles/index.scss";
import "@fontsource/roboto/300.css";
import ReactDOM from "react-dom";
import { QueryClientProvider } from "react-query";
import { ReactQueryDevtools } from "react-query/devtools";
import { Provider } from "react-redux";
import { useRoutes } from "react-router-dom";
import { Router, useRouteItems } from "./Router";
import { Environment } from "./utilities";
const RouteApp = () => {
const items = useRouteItems();
return useRoutes(items);
};
export const Entrance = () => (
<Provider store={store}>
<QueryClientProvider client={queryClient}>
<Router>
{/* TODO: Enabled Strict Mode after react-bootstrap upgrade to bootstrap 5 */}
{/* <StrictMode> */}
{Environment.queryDev && <ReactQueryDevtools initialIsOpen={false} />}
<RouteApp></RouteApp>
{/* </StrictMode> */}
</Router>
</QueryClientProvider>
</Provider>
);
ReactDOM.render(<Entrance />, document.getElementById("root"));
|