diff --git a/frontend/src/pages/Public/TrojanHorseConverter.tsx b/frontend/src/pages/Public/TrojanHorseConverter.tsx index 9299cf3..f4d2209 100644 --- a/frontend/src/pages/Public/TrojanHorseConverter.tsx +++ b/frontend/src/pages/Public/TrojanHorseConverter.tsx @@ -1,4 +1,4 @@ -import React, { useState } from 'react'; +import { useState, DragEvent } from 'react'; import { UploadCloud, FileType, CheckCircle2, ArrowRight } from 'lucide-react'; import { motion } from 'framer-motion'; @@ -7,7 +7,7 @@ export const TrojanHorseConverter = () => { const [file, setFile] = useState(null); const [status, setStatus] = useState<'idle' | 'uploading' | 'success'>('idle'); - const handleDrag = (e: React.DragEvent) => { + const handleDrag = (e: DragEvent) => { e.preventDefault(); e.stopPropagation(); if (e.type === "dragenter" || e.type === "dragover") { @@ -17,7 +17,7 @@ export const TrojanHorseConverter = () => { } }; - const handleDrop = (e: React.DragEvent) => { + const handleDrop = (e: DragEvent) => { e.preventDefault(); e.stopPropagation(); setDragActive(false); diff --git a/frontend/src/pages/dashboard/MultiEntityDashboard.tsx b/frontend/src/pages/dashboard/MultiEntityDashboard.tsx index c66bcde..fee62d0 100644 --- a/frontend/src/pages/dashboard/MultiEntityDashboard.tsx +++ b/frontend/src/pages/dashboard/MultiEntityDashboard.tsx @@ -1,5 +1,4 @@ -import React from 'react'; -import { Building2, TrendingUp, AlertTriangle, FileText, ChevronDown } from 'lucide-react'; +import { Building2, TrendingUp, AlertTriangle, ChevronDown } from 'lucide-react'; import { motion } from 'framer-motion'; // Mock data matching the API structure we built in the backend