Skip to content

Commit

Permalink
fix: fix routes.tsx build error
Browse files Browse the repository at this point in the history
  • Loading branch information
yuanyxh committed Sep 21, 2024
1 parent ca98e08 commit a115353
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 9 deletions.
11 changes: 4 additions & 7 deletions src/routes.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,6 @@ import { createRouter } from '@/router';

import { sleep } from '@/utils';

import { Articles_ID } from './viewer/hooks/useArticles';
import { Books_ID } from './viewer/hooks/useBooks';
import { Examples_ID } from './viewer/hooks/useExamples';

export const routes: RouteObject[] = [
{
path: '/',
Expand All @@ -19,7 +15,7 @@ export const routes: RouteObject[] = [
element: () => import('@/viewer/Index')
},
{
id: Articles_ID,
id: 'Articles',
path: 'articles',
children: [
{
Expand All @@ -30,7 +26,7 @@ export const routes: RouteObject[] = [
]
},
{
id: Books_ID,
id: 'Books',
path: 'books',
children: [
{
Expand Down Expand Up @@ -63,14 +59,15 @@ export const routes: RouteObject[] = [
element: () => import('@/viewer/Examples')
},
{
id: Examples_ID,
id: 'Examples',
path: 'coder',
element: () => import('@/coder/Layout'),
children: [
/** placeholder for coder */
]
},
{
id: 'Tools',
path: 'tools',
element: () => import('@/viewer/Tools'),
children: [
Expand Down
4 changes: 2 additions & 2 deletions src/viewer/Layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ const Actions = () => {
<Space>
<Icon
title="切换显示语言"
className={styles.action}
className={classnames(styles.action, 'icon-btn')}
icon="material-symbols:language-sharp"
size={20}
/>
Expand All @@ -232,7 +232,7 @@ const Actions = () => {
</Dropdown>

<Icon
className={classnames(styles.action, styles.settings)}
className={classnames(styles.action, styles.settings, 'icon-btn')}
title="进入设置页"
icon="material-symbols:settings"
size={20}
Expand Down

0 comments on commit a115353

Please sign in to comment.