@@ -2,11 +2,7 @@ import React from 'react';
2
2
import { Navigate , IndexRouteObject , NonIndexRouteObject , Outlet } from 'react-router-dom' ;
3
3
import { Layout } from './components/Layout' ;
4
4
import { ErrorPage } from './components/ErrorPage' ;
5
- import { ThemesHome } from './pages/theme/home' ;
6
5
import { ThemeEditor } from './pages/theme/editor' ;
7
- import { PageExample431 } from './pages/examples/Example431' ;
8
-
9
- import Home from './pages/home' ;
10
6
11
7
import { BasicSetupExample } from './pages/extensions/basic-setup/example' ;
12
8
import { ClassNameExample } from './pages/extensions/classname/example' ;
@@ -40,7 +36,7 @@ export const routes: MenuRouteObject[] = [
40
36
{
41
37
index : true ,
42
38
label : 'Home' ,
43
- Component : Home ,
39
+ lazy : ( ) => import ( './pages/home' ) ,
44
40
} ,
45
41
{
46
42
path : 'extensions' ,
@@ -174,7 +170,7 @@ export const routes: MenuRouteObject[] = [
174
170
{
175
171
path : 'home' ,
176
172
label : 'Home' ,
177
- Component : ThemesHome ,
173
+ lazy : ( ) => import ( './pages/theme/home' ) ,
178
174
} ,
179
175
{
180
176
path : 'data' ,
@@ -540,7 +536,12 @@ export const routes: MenuRouteObject[] = [
540
536
{
541
537
path : '431' ,
542
538
label : 'How to remove all syntax highlighting?' ,
543
- Component : PageExample431 ,
539
+ lazy : ( ) => import ( './pages/examples/Example431' ) ,
540
+ } ,
541
+ {
542
+ path : '455' ,
543
+ label : 'CodeMirrorMerge use theme' ,
544
+ lazy : ( ) => import ( './pages/examples/Example455' ) ,
544
545
} ,
545
546
{
546
547
path : 'refs' ,
0 commit comments