From d9f14b260319033f1af6c0f8499a146c32d0c273 Mon Sep 17 00:00:00 2001 From: atellmer Date: Sat, 24 Feb 2024 10:47:46 +0500 Subject: [PATCH] templates fix --- templates/server/frontend/components/app.tsx | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/templates/server/frontend/components/app.tsx b/templates/server/frontend/components/app.tsx index 622cceb3..83972ff3 100644 --- a/templates/server/frontend/components/app.tsx +++ b/templates/server/frontend/components/app.tsx @@ -6,21 +6,18 @@ import { type Api } from '../../contract'; import { Key } from '../api'; import { GlobalStyle, Spinner, Root, Header, Menu, Content } from './ui'; -const Products = lazy(() => import('./products')); -const Operations = lazy(() => import('./operations')); -const Invoices = lazy(() => import('./invoices')); const routes: Routes = [ { path: 'products', - component: Products, + component: lazy(() => import('./products')), }, { path: 'operations', - component: Operations, + component: lazy(() => import('./operations')), }, { path: 'invoices', - component: Invoices, + component: lazy(() => import('./invoices')), }, { path: '',