forked from Abdulbari/sgeUpdated
Add 'sge-frontend/' from commit '5fa787e054b25ac53edc7ff0275ea7960a709401'
git-subtree-dir: sge-frontend git-subtree-mainline:876c278ac4git-subtree-split:5fa787e054
This commit is contained in:
60
sge-frontend/src/index.js
Normal file
60
sge-frontend/src/index.js
Normal file
@@ -0,0 +1,60 @@
|
||||
// ** React Imports
|
||||
import { Suspense, lazy } from "react";
|
||||
import ReactDOM from "react-dom";
|
||||
|
||||
// ** Redux Imports
|
||||
import { Provider } from "react-redux";
|
||||
import { store } from "./redux/storeConfig/store";
|
||||
|
||||
// ** Toast & ThemeColors Context
|
||||
import { ToastContainer } from "react-toastify";
|
||||
import { ThemeContext } from "./utility/context/ThemeColors";
|
||||
|
||||
// ** Spinner (Splash Screen)
|
||||
// import Spinner from "./@core/components/spinner/Fallback-spinner";
|
||||
import ComponentSpinner from "./@core/components/spinner/Fallback-spinner";
|
||||
|
||||
import "../node_modules/bootstrap/dist/js/bootstrap.bundle";
|
||||
|
||||
import "./@core/scss/base/bootstrap.scss";
|
||||
import "./@core/scss/base/bootstrap-extended.scss";
|
||||
|
||||
// ** Ripple Button
|
||||
import "./@core/components/ripple-button";
|
||||
|
||||
// ** React Perfect Scrollbar
|
||||
import "react-perfect-scrollbar/dist/css/styles.css";
|
||||
|
||||
// ** React Toastify
|
||||
import "./@core/scss/react/libs/toastify/toastify.scss";
|
||||
|
||||
// ** Core styles
|
||||
import "./@core/assets/fonts/feather/iconfont.css";
|
||||
import "./@core/scss/core.scss";
|
||||
import "./assets/scss/style.scss";
|
||||
|
||||
// ** Service Worker
|
||||
import * as serviceWorker from "./serviceWorker";
|
||||
|
||||
// ** Language Option
|
||||
import "./i18n";
|
||||
|
||||
// ** Lazy load app
|
||||
const LazyApp = lazy(() => import("./App"));
|
||||
|
||||
ReactDOM.render(
|
||||
<Provider store={store}>
|
||||
<Suspense fallback={<ComponentSpinner />}>
|
||||
<ThemeContext>
|
||||
<LazyApp />
|
||||
<ToastContainer newestOnTop />
|
||||
</ThemeContext>
|
||||
</Suspense>
|
||||
</Provider>,
|
||||
document.getElementById("root")
|
||||
);
|
||||
|
||||
// If you want your app to work offline and load faster, you can change
|
||||
// unregister() to register() below. Note this comes with some pitfalls.
|
||||
// Learn more about service workers: https://bit.ly/CRA-PWA
|
||||
serviceWorker.unregister();
|
||||
Reference in New Issue
Block a user