refactoring, linting, formatting

This commit is contained in:
2026-05-17 02:05:27 +02:00
parent bdbb6c0a1c
commit 07f4361573
38 changed files with 6121 additions and 2647 deletions

View File

@@ -1,5 +1,5 @@
import React from 'react';
import type { PdfFile } from '../pdf/pdfTypes';
import React from "react";
import type { PdfFile } from "../pdf/pdfTypes";
interface FileLoaderProps {
pdf: PdfFile | null;
@@ -11,7 +11,7 @@ const FileLoader: React.FC<FileLoaderProps> = ({ pdf, onFileLoaded }) => {
const file = e.target.files?.[0];
if (file) {
onFileLoaded(file);
e.target.value = '';
e.target.value = "";
}
};
@@ -22,7 +22,7 @@ const FileLoader: React.FC<FileLoaderProps> = ({ pdf, onFileLoaded }) => {
<input type="file" accept="application/pdf" onChange={handleChange} />
{pdf && (
<div style={{ marginTop: '0.75rem', fontSize: '0.9rem' }}>
<div style={{ marginTop: "0.75rem", fontSize: "0.9rem" }}>
<div>
<strong>Loaded:</strong> {pdf.name}
</div>