From 17bd81d603fea7d7b61e750d109558bb4ea2ef51 Mon Sep 17 00:00:00 2001 From: Maximilian Harz Date: Sat, 5 Jul 2025 16:52:26 +0200 Subject: [PATCH] Remove lazy loading --- app/src/App.tsx | 23 ++++------------------- 1 file changed, 4 insertions(+), 19 deletions(-) diff --git a/app/src/App.tsx b/app/src/App.tsx index e6631809..e43913f6 100644 --- a/app/src/App.tsx +++ b/app/src/App.tsx @@ -34,12 +34,15 @@ import { MarketView, SVG, LoadingMapOverlay, + ProfileForm, + ProfileView, + UserSettings, } from 'utopia-ui' import { Route, Routes } from 'react-router-dom' import './App.css' -import { lazy, Suspense, useEffect, useState } from 'react' +import { Suspense, useEffect, useState } from 'react' import { assetsApi } from './api/assetsApi' import { itemsApi } from './api/itemsApi' @@ -54,24 +57,6 @@ import { getBottomRoutes, routes } from './routes/sidebar' import { InviteApi } from './api/InviteApi' import { config } from '@/config' -const ProfileForm = lazy(() => - import('utopia-ui/Profile').then((mod) => ({ - default: mod.ProfileForm, - })), -) - -const ProfileView = lazy(() => - import('utopia-ui/Profile').then((mod) => ({ - default: mod.ProfileView, - })), -) - -const UserSettings = lazy(() => - import('utopia-ui/Profile').then((mod) => ({ - default: mod.UserSettings, - })), -) - const userApi = new UserApi() const inviteApi = new InviteApi(userApi)