Fix TypeScript compilation: remove deprecated baseUrl, add missing imports, fix type narrowing

- Remove deprecated baseUrl from tsconfig.app.json (TS 6.0 error)
- Add missing AlertCircle and Button imports in Dashboard.tsx
- Cast Sidebar onNavigate arg to fix View type mismatch

tsc exits 0, vite build exits 0
This commit is contained in:
Matt
2026-07-29 19:39:17 +00:00
parent 9ad7fc85bd
commit 3aceaca2e1
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -151,7 +151,7 @@ function AppContent() {
<Sidebar
onAddConnection={() => setConnectionDialogOpen(true)}
activeView={view.type}
onNavigate={handleNavigate}
onNavigate={(v) => handleNavigate(v as View)}
/>
<main className="flex-1 overflow-hidden">
{renderMainContent()}
+2 -1
View File
@@ -2,12 +2,13 @@ import { useCallback } from 'react'
import { useQueryClient } from '@tanstack/react-query'
import { useNodes, useVMs, useTasks, queryKeys } from '@/hooks/useProxmox'
import { Card, CardContent, CardHeader, CardTitle } from '@/components/ui/card'
import { Server, Cpu, HardDrive, MemoryStick } from 'lucide-react'
import { Server, Cpu, HardDrive, MemoryStick, AlertCircle } from 'lucide-react'
import { ResourceGauge } from '@/components/dashboard/ResourceGauge'
import { NodeHealthGrid } from '@/components/dashboard/NodeHealthGrid'
import { ActivityFeed } from '@/components/dashboard/ActivityFeed'
import { QuickActions } from '@/components/dashboard/QuickActions'
import { formatBytes } from '@/lib/format'
import { Button } from '@/components/ui/button'
interface DashboardProps {
connectionId: string
-1
View File
@@ -17,7 +17,6 @@
"jsx": "react-jsx",
/* Path aliases */
"baseUrl": ".",
"paths": {
"@/*": ["./src/*"]
},