Skip to content

Commit 94dea90

Browse files
committed
refactor: 完全移除错误添加的 AboutPage 和相关引用
- 删除 src/pages/AboutPage/ 目录和文件 - 从 App.tsx 移除 AboutPage 导入和使用 - 从 TabType 移除 'about' 类型 - 从 AppSidebar 移除"关于"菜单项 - 删除未使用的 Info 图标导入
1 parent c35e440 commit 94dea90

File tree

3 files changed

+1
-113
lines changed

3 files changed

+1
-113
lines changed

src/App.tsx

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ import { SettingsPage } from '@/pages/SettingsPage';
1313
import { TransparentProxyPage } from '@/pages/TransparentProxyPage';
1414
import { ToolManagementPage } from '@/pages/ToolManagementPage';
1515
import { HelpPage } from '@/pages/HelpPage';
16-
import { AboutPage } from '@/pages/AboutPage';
1716
import { useToast } from '@/hooks/use-toast';
1817
import { useAppEvents } from '@/hooks/useAppEvents';
1918
import { useCloseAction } from '@/hooks/useCloseAction';
@@ -46,8 +45,7 @@ type TabType =
4645
| 'transparent-proxy'
4746
| 'provider-management'
4847
| 'settings'
49-
| 'help'
50-
| 'about';
48+
| 'help';
5149

5250
function App() {
5351
const { toast } = useToast();
@@ -397,15 +395,6 @@ function App() {
397395
)}
398396
{activeTab === 'provider-management' && <ProviderManagementPage />}
399397
{activeTab === 'help' && <HelpPage onShowOnboarding={handleShowOnboarding} />}
400-
{activeTab === 'about' && (
401-
<AboutPage
402-
updateInfo={updateInfo}
403-
onUpdateCheck={() => {
404-
setUpdateInfo(null);
405-
setIsUpdateDialogOpen(true);
406-
}}
407-
/>
408-
)}
409398
</main>
410399

411400
{/* 更新对话框 */}

src/components/layout/AppSidebar.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ import {
1616
Sun,
1717
Moon,
1818
Monitor,
19-
Info,
2019
//预留
2120
// User,
2221
} from 'lucide-react';
@@ -54,7 +53,6 @@ const secondaryItems = [
5453
{ id: 'provider-management', label: '供应商', icon: Building2 },
5554
{ id: 'help', label: '帮助', icon: HelpCircle },
5655
{ id: 'settings', label: '设置', icon: SettingsIcon },
57-
{ id: 'about', label: '关于', icon: Info },
5856
];
5957

6058
export function AppSidebar({

src/pages/AboutPage/index.tsx

Lines changed: 0 additions & 99 deletions
This file was deleted.

0 commit comments

Comments
 (0)