diff --git a/packages/dashboard-frontend/src/Routes/index.tsx b/packages/dashboard-frontend/src/Routes/index.tsx index b1dcbf2bfc..bb577c3280 100644 --- a/packages/dashboard-frontend/src/Routes/index.tsx +++ b/packages/dashboard-frontend/src/Routes/index.tsx @@ -16,11 +16,12 @@ import { Redirect, Route, RouteComponentProps, Switch } from 'react-router'; import { buildFactoryLoaderPath } from '@/preload/main'; import { ROUTE } from '@/Routes/routes'; -const CreateWorkspace = React.lazy(() => import('../pages/GetStarted')); -const WorkspacesListContainer = React.lazy(() => import('../containers/WorkspacesList')); -const WorkspaceDetailsContainer = React.lazy(() => import('../containers/WorkspaceDetails')); +import WorkspaceDetailsContainer from '../containers/WorkspaceDetails'; +import WorkspacesListContainer from '../containers/WorkspacesList'; +import CreateWorkspace from '../pages/GetStarted'; +import UserPreferences from '../pages/UserPreferences'; + const LoaderContainer = React.lazy(() => import('../containers/Loader')); -const UserPreferences = React.lazy(() => import('../pages/UserPreferences')); // temporary hidden, https://github.com/eclipse/che/issues/21595 // const UserAccount = React.lazy(() => import('../pages/UserAccount'));