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, Settings,
Database, Database,
Search, Search,
Layers, Layers
X
} from 'lucide-react' } from 'lucide-react'
import { useAppStore } from '../store/appStore' 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 => ({ setRegions(prev => ({
...prev, ...prev,
[regionKey]: bounds [regionKey]: bounds

View File

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

View File

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

View File

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

View File

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