Add FullScreenLoader as suspense fallback

This commit is contained in:
timothycarambat 2024-06-20 10:11:48 -07:00
parent 610c87ce19
commit d043fdada6

View File

@ -14,6 +14,7 @@ import i18n from "./i18n";
import { PfpProvider } from "./PfpContext";
import { LogoProvider } from "./LogoContext";
import { FullScreenLoader } from "./components/Preloader";
const Main = lazy(() => import("@/pages/Main"));
const InvitePage = lazy(() => import("@/pages/Invite"));
@ -59,7 +60,7 @@ const PrivacyAndData = lazy(
export default function App() {
return (
<Suspense fallback={<div />}>
<Suspense fallback={<FullScreenLoader />}>
<ContextWrapper>
<LogoProvider>
<PfpProvider>