Skip to content

Commit

Permalink
lazy import pages reverted , to prevent blank screen issue
Browse files Browse the repository at this point in the history
  • Loading branch information
ajithsimons committed Dec 20, 2023
1 parent f0ec9bb commit 3f639d7
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions src/helpers/RouteHelper.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,18 +16,18 @@
*
* SPDX-License-Identifier: Apache-2.0
********************************************************************************/
import { lazy, ReactElement } from 'react';
import { ReactElement } from 'react';

const ConsumeData = lazy(() => import('../pages/ConsumeData'));
const ConsumerContracts = lazy(() => import('../pages/ConsumerContracts'));
const CreateData = lazy(() => import('../pages/CreateData'));
const Help = lazy(() => import('../pages/Help'));
const Home = lazy(() => import('../pages/Home'));
const Logout = lazy(() => import('../pages/Logout'));
const PageNotFound = lazy(() => import('../pages/PageNotFound'));
const ProviderContracts = lazy(() => import('../pages/ProviderContracts'));
const UploadHistoryNew = lazy(() => import('../pages/UploadHistoryNew'));
const About = lazy(() => import('../pages/About'));
import About from '../pages/About';
import ConsumeData from '../pages/ConsumeData';
import ConsumerContracts from '../pages/ConsumerContracts';
import CreateData from '../pages/CreateData';
import Help from '../pages/Help';
import Home from '../pages/Home';
import Logout from '../pages/Logout';
import PageNotFound from '../pages/PageNotFound';
import ProviderContracts from '../pages/ProviderContracts';
import UploadHistoryNew from '../pages/UploadHistoryNew';

export interface IRoutes {
key?: string;
Expand Down

0 comments on commit 3f639d7

Please sign in to comment.