diff --git a/frontend/src/components/Overview.tsx b/frontend/src/components/Overview.tsx index 699b3fe..a9a90bf 100644 --- a/frontend/src/components/Overview.tsx +++ b/frontend/src/components/Overview.tsx @@ -46,28 +46,6 @@ export default function Overview({ examCount, resultCount, recentResults, onLoad } } - const [importUrl, setImportUrl] = useState('') - const [importing, setImporting] = useState(false) - - const handleImportUrl = async () => { - if (!importUrl.trim()) return - setUploadErr(null) - setImporting(true) - try { - const res = await fetch(importUrl.trim()) - if (!res.ok) throw new Error(`HTTP ${res.status}`) - const data = await res.json() as unknown - const msg = validateExam(data) - if (msg) throw new Error(msg) - onLoadExam(parseExam(data), true) - setImportUrl('') - } catch (e) { - setUploadErr(t('landing.loadError', { message: (e as Error).message })) - } finally { - setImporting(false) - } - } - const handleRetakeWeakest = async (examId: number) => { try { const exam = await examApi.getExam(examId) @@ -166,31 +144,6 @@ export default function Overview({ examCount, resultCount, recentResults, onLoad /> - {/*