import React, { lazy, Suspense } from "react"; import { Helmet } from "react-helmet"; import ReactDOM from "react-dom"; import { Provider } from "react-redux"; import Loader from "pages/common/Loader"; import "./index.css"; import * as serviceWorker from "./serviceWorker"; import { Router, Route, Switch, Redirect } from "react-router-dom"; import history from "./utils/history"; import { ThemeProvider, theme } from "constants/DefaultTheme"; import { DndProvider } from "react-dnd"; import HTML5Backend from "react-dnd-html5-backend"; import { appInitializer } from "utils/AppsmithUtils"; import ProtectedRoute from "./pages/common/ProtectedRoute"; import store from "./store"; import { BASE_URL, BUILDER_URL, APP_VIEW_URL, APPLICATIONS_URL, ORG_URL, USER_AUTH_URL, AUTH_LOGIN_URL, SIGN_UP_URL, BASE_LOGIN_URL, BASE_SIGNUP_URL, } from "constants/routes"; const loadingIndicator = ; const App = lazy(() => import("./App")); const UserAuth = lazy(() => import("./pages/UserAuth")); const Editor = lazy(() => import("./pages/Editor")); const Applications = lazy(() => import("./pages/Applications")); const PageNotFound = lazy(() => import("./pages/common/PageNotFound")); const AppViewer = lazy(() => import("./pages/AppViewer")); const Organization = lazy(() => import("./pages/organization")); appInitializer(); ReactDOM.render( , 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: http://bit.ly/CRA-PWA serviceWorker.unregister();