1
0
mirror of https://github.com/matrix-org/matrix-authentication-service.git synced 2025-11-21 23:00:50 +03:00

Basic navigation

This commit is contained in:
Quentin Gliech
2022-11-10 16:03:29 +01:00
parent 47c9b54c06
commit 21db375b94
12 changed files with 288 additions and 23 deletions

View File

@@ -12,18 +12,20 @@
// See the License for the specific language governing permissions and
// limitations under the License.
import React from "react";
import React, { lazy } from "react";
import ReactDOM from "react-dom/client";
import { RelayEnvironmentProvider } from "react-relay";
import { App } from "./App";
import LoadingScreen from "./components/LoadingScreen";
import RelayEnvironment from "./RelayEnvironment";
const Router = lazy(() => import("./Router"));
ReactDOM.createRoot(document.getElementById("root") as HTMLElement).render(
<React.StrictMode>
<RelayEnvironmentProvider environment={RelayEnvironment}>
<React.Suspense fallback={"Loading..."}>
<App />
<React.Suspense fallback={<LoadingScreen />}>
<Router />
</React.Suspense>
</RelayEnvironmentProvider>
</React.StrictMode>