Skip to content

Commit

Permalink
[up] lazy load customer portal routes
Browse files Browse the repository at this point in the history
  • Loading branch information
ManiacMaxo committed Dec 31, 2024
1 parent 49af9a9 commit 0e6e832
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions src/core/router/CustomerPortalRoutes.tsx
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@
import CustomerPortalSections from '~/components/customerPortal/common/CustomerPortalSections'
import CustomerInformationPage from '~/components/customerPortal/customerInformation/CustomerInformationPage'
import UsagePage from '~/components/customerPortal/usage/UsagePage'
import WalletPage from '~/components/customerPortal/wallet/WalletPage'

import { CustomRouteObject } from './types'
import { lazyLoad } from './utils'

// ----------- Pages -----------
const PortalInit = lazyLoad(() => import('~/pages/auth/PortalInit'))
const CustomerPortalSections = lazyLoad(
() => import('~/components/customerPortal/common/CustomerPortalSections'),
)
const UsagePage = lazyLoad(() => import('~/components/customerPortal/usage/UsagePage'))
const WalletPage = lazyLoad(() => import('~/components/customerPortal/wallet/WalletPage'))
const CustomerInformationPage = lazyLoad(
() => import('~/components/customerPortal/customerInformation/CustomerInformationPage'),
)

// ----------- Routes -----------
export const CUSTOMER_PORTAL_ROUTE = '/customer-portal/:token'
Expand Down

0 comments on commit 0e6e832

Please sign in to comment.