Initial commit
This commit is contained in:
22
src/main.tsx
Normal file
22
src/main.tsx
Normal file
@@ -0,0 +1,22 @@
|
||||
import { Spin } from "antd";
|
||||
import "i18n/i18n";
|
||||
import React, { Suspense } from "react";
|
||||
import ReactDOM from "react-dom/client";
|
||||
import { Provider } from "react-redux";
|
||||
import App from "./App.tsx";
|
||||
import "./index.css";
|
||||
import { store } from "./redux/store.ts";
|
||||
|
||||
ReactDOM.createRoot(document.getElementById("root")!).render(
|
||||
<React.StrictMode>
|
||||
<Suspense
|
||||
fallback={
|
||||
<Spin style={{ position: "relative", top: "50vh", left: "50vw" }} />
|
||||
}
|
||||
>
|
||||
<Provider store={store}>
|
||||
<App />
|
||||
</Provider>
|
||||
</Suspense>
|
||||
</React.StrictMode>
|
||||
);
|
||||
Reference in New Issue
Block a user