Fix TypeScript strict mode errors - remove unused imports/variables
This commit is contained in:
parent
09e2d07706
commit
aaf4d4eb3e
|
|
@ -6,8 +6,7 @@ import {
|
|||
Settings,
|
||||
Database,
|
||||
Search,
|
||||
Layers,
|
||||
X
|
||||
Layers
|
||||
} from 'lucide-react'
|
||||
import { useAppStore } from '../store/appStore'
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -6,7 +6,6 @@ import {
|
|||
TrendingUp,
|
||||
Package,
|
||||
ExternalLink,
|
||||
Clock,
|
||||
AlertCircle
|
||||
} from 'lucide-react'
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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()) ||
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue