🛠️ Fix frontend compilation errors
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user