🛠️ Fix frontend compilation errors

This commit is contained in:
Hamza-Ayed
2026-04-22 01:28:42 +03:00
parent fd00e9c57d
commit 401efaecb2
2 changed files with 4 additions and 5 deletions

View File

@@ -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<File | null>(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);

View File

@@ -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