diff --git a/src/App.js b/src/App.js index 03ed7877fc2c9fc9fb177a76ac0b71c43c839a6a..447fdca345fa04b7cbd81395a3110852fdc17877 100644 --- a/src/App.js +++ b/src/App.js @@ -8,7 +8,7 @@ import { Routes, useLocation, } from "react-router-dom"; -import { ReactKeycloakProvider as KeycloakProvider } from "@react-keycloak/web"; +// import { ReactKeycloakProvider as KeycloakProvider } from "@react-keycloak/web"; import * as Sentry from "@sentry/react"; import { browserTracingIntegration } from "@sentry/browser" import { extraErrorDataIntegration } from "@sentry/integrations"; @@ -36,7 +36,7 @@ import Disabled from "./pages/Disabled"; import KidsnFun from "./pages/KidsnFun"; import Payment from "./pages/Payment"; import cfLogo from "./cf2023_kormidlo_lod.svg"; -import keycloak from "./keycloak"; +// import keycloak from "./keycloak"; import partyLogo from "./logo-full-black.svg"; import "./styles.css"; @@ -186,6 +186,19 @@ const LoadingComponent = ( </div> ); + +const AuthenticatedApp = () => { + + return ( + <> + <Suspense fallback={LoadingComponent}> + <BaseApp /> + </Suspense> + </> + ); +}; + +/* const AuthenticatedApp = () => { const keycloakInitConfig = { onLoad: "check-sso", @@ -215,6 +228,7 @@ const AuthenticatedApp = () => { </> ); }; +*/ const ErrorBoundaryFallback = ({ error }) => { return (