diff --git a/frontend/src/App.tsx b/frontend/src/App.tsx index 4ae9e654..82dc26f8 100644 --- a/frontend/src/App.tsx +++ b/frontend/src/App.tsx @@ -51,6 +51,24 @@ import { Landingpage } from './pages/Landingpage' import MapContainer from './pages/MapContainer' import { getBottomRoutes, routes } from './routes/sidebar' +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, + })), +) + function App() { const [permissionsApiInstance, setPermissionsApiInstance] = useState() const [tagsApi, setTagsApi] = useState>() @@ -134,24 +152,6 @@ function App() { const currentUrl = window.location.href const bottomRoutes = getBottomRoutes(currentUrl) - 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, - })), - ) - if (map && layers) return (
diff --git a/lib/package-lock.json b/lib/package-lock.json index d2a947e1..68cddb52 100644 --- a/lib/package-lock.json +++ b/lib/package-lock.json @@ -1,12 +1,12 @@ { "name": "utopia-ui", - "version": "3.0.105", + "version": "3.0.106", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "utopia-ui", - "version": "3.0.105", + "version": "3.0.106", "license": "GPL-3.0-only", "dependencies": { "@heroicons/react": "^2.0.17", diff --git a/lib/package.json b/lib/package.json index 1e597035..b65f9562 100644 --- a/lib/package.json +++ b/lib/package.json @@ -1,6 +1,6 @@ { "name": "utopia-ui", - "version": "3.0.105", + "version": "3.0.106", "description": "Reuseable React Components to build mapping apps for real life communities and networks", "repository": "https://github.com/utopia-os/utopia-ui", "homepage": "https://utopia-os.org/",