fix: lint errors en warnings opgelost voor CI

This commit is contained in:
Janpeter Visser 2026-04-24 14:09:03 +02:00
parent 97a4173cba
commit ecc7a10679
14 changed files with 38 additions and 26 deletions

View file

@ -19,19 +19,18 @@ export function SplitPane({
minSize = 200,
}: SplitPaneProps) {
const containerRef = useRef<HTMLDivElement>(null)
const [split, setSplit] = useState<number>(defaultSplit)
const [isDragging, setIsDragging] = useState(false)
const [isMobile, setIsMobile] = useState(false)
const [activeTab, setActiveTab] = useState<'left' | 'right'>('left')
// Load stored split on mount
useEffect(() => {
const [split, setSplit] = useState<number>(() => {
if (typeof window === 'undefined') return defaultSplit
const stored = localStorage.getItem(`split-pane:${storageKey}`)
if (stored) {
const val = parseFloat(stored)
if (!isNaN(val) && val > 0 && val < 100) setSplit(val)
if (!isNaN(val) && val > 0 && val < 100) return val
}
}, [storageKey])
return defaultSplit
})
const [isDragging, setIsDragging] = useState(false)
const [isMobile, setIsMobile] = useState(false)
const [activeTab, setActiveTab] = useState<'left' | 'right'>('left')
// Detect mobile
useEffect(() => {