Skip to content

Commit f4aaab6

Browse files
committed
Add comments
1 parent 7547393 commit f4aaab6

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

src/routes/index.tsx

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,26 +2,33 @@ import React, { lazy, Suspense } from 'react';
22
import { BrowserRouter } from 'react-router-dom';
33
import { PATH } from 'src/constants/paths';
44
import { Loading } from 'src/components/Loading';
5-
import { AppHeader } from 'src/components/Header';
65
import { Route, Switch } from 'react-router-dom';
7-
const NotFoundPage = lazy(() => import('src/pages/ErrorPages/404Pages'));
6+
7+
// ---> Static pages
88
const HomePage = lazy(() => import('src/pages/HomePages/HomePage'));
99
const ContactPage = lazy(() => import('src/pages/StaticPages/ContactPage'));
1010
const AboutPage = lazy(() => import('src/pages/StaticPages/AboutPage'));
1111
const Demo1Page = lazy(() => import('src/pages/StaticPages/Demo1Page'));
1212
const Demo2Page = lazy(() => import('src/pages/StaticPages/Demo2Page'));
1313
const Feature1Page = lazy(() => import('src/pages/StaticPages/Feature1Page'));
1414
const Feature2Page = lazy(() => import('src/pages/StaticPages/Feature2Page'));
15+
16+
// ---> Auth pages
1517
const LoginPage = lazy(() => import('src/pages/AuthPages/LoginPage'));
1618
const RegisterPage = lazy(() => import('src/pages/AuthPages/RegisterPage'));
1719
const ProfilePage = lazy(() => import('src/pages/AuthPages/ProfilePage'));
20+
21+
// ---> Products pages
1822
const ProductListPage = lazy(
1923
() => import('src/pages/ProductPages/ProductListPage'),
2024
);
2125
const ProductItemPage = lazy(
2226
() => import('src/pages/ProductPages/ProductItemPage'),
2327
);
2428

29+
// ---> Error pages
30+
const NotFoundPage = lazy(() => import('src/pages/ErrorPages/404Pages'));
31+
2532
export const Routes = () => {
2633
return (
2734
<Suspense fallback={<Loading />}>

0 commit comments

Comments
 (0)