Fix TypeScript strict mode errors - remove unused imports/variables

This commit is contained in:
Aether 2026-02-23 20:16:58 +00:00
parent 09e2d07706
commit aaf4d4eb3e
No known key found for this signature in database
GPG Key ID: 95AFEE837E39AFD2
6 changed files with 7 additions and 15 deletions

View File

@ -6,8 +6,7 @@ import {
Settings,
Database,
Search,
Layers,
X
Layers
} from 'lucide-react'
import { useAppStore } from '../store/appStore'

View File

@ -290,7 +290,7 @@ function RegionCalibrator({ regions, onComplete }: RegionCalibratorProps) {
}
}
const saveRegion = (regionKey: string, bounds: any) => {
const _saveRegion = (regionKey: string, bounds: any) => {
setRegions(prev => ({
...prev,
[regionKey]: bounds

View File

@ -6,7 +6,6 @@ import {
TrendingUp,
Package,
ExternalLink,
Clock,
AlertCircle
} from 'lucide-react'

View File

@ -15,7 +15,7 @@ import {
export default function Overlay() {
const [widgets, setWidgets] = useState<any[]>([])
const [sessionTime, setSessionTime] = useState(0)
const [isDragging, setIsDragging] = useState(false)
const [_isDragging, setIsDragging] = useState(false)
useEffect(() => {
// Listen for widget updates from plugins

View File

@ -1,23 +1,18 @@
import { useState, useEffect } from 'react'
import { invoke } from '@tauri-apps/api/tauri'
import { useState } from 'react'
import {
Puzzle,
Power,
Settings2,
ExternalLink,
Search,
Grid,
List,
AlertCircle
List
} from 'lucide-react'
import { useAppStore } from '../store/appStore'
import type { Plugin } from '../store/appStore'
export default function Plugins() {
const { plugins, activatePlugin, deactivatePlugin, loadPlugins } = useAppStore()
const { plugins, activatePlugin, deactivatePlugin } = useAppStore()
const [searchQuery, setSearchQuery] = useState('')
const [viewMode, setViewMode] = useState<'grid' | 'list'>('grid')
const [selectedPlugin, setSelectedPlugin] = useState<Plugin | null>(null)
const filteredPlugins = plugins.filter(p =>
p.name.toLowerCase().includes(searchQuery.toLowerCase()) ||

View File

@ -1,5 +1,4 @@
import { useState, useEffect } from 'react'
import { invoke } from '@tauri-apps/api/tauri'
import {
Settings2,
Keyboard,
@ -18,7 +17,7 @@ interface SettingSection {
}
export default function Settings() {
const { settings, updateSetting, loadSettings } = useAppStore()
const { settings, updateSetting } = useAppStore()
const [activeSection, setActiveSection] = useState('general')
const [localSettings, setLocalSettings] = useState(settings)
const [hasChanges, setHasChanges] = useState(false)