From 401efaecb25d9d25dfc5837b6c5fe04b4d8fca4b Mon Sep 17 00:00:00 2001 From: Hamza-Ayed Date: Wed, 22 Apr 2026 01:28:42 +0300 Subject: [PATCH] =?UTF-8?q?=F0=9F=9B=A0=EF=B8=8F=20Fix=20frontend=20compil?= =?UTF-8?q?ation=20errors?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/pages/Public/TrojanHorseConverter.tsx | 6 +++--- frontend/src/pages/dashboard/MultiEntityDashboard.tsx | 3 +-- 2 files changed, 4 insertions(+), 5 deletions(-) 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