mirror of
https://github.com/mgeeky/decode-spam-headers.git
synced 2026-02-22 13:33:30 +01:00
MAESTRO: fix linting and formatting
This commit is contained in:
@@ -105,8 +105,16 @@ const timeoutReport: AnalysisReport = {
|
||||
};
|
||||
|
||||
const AnalysisHarness = ({ request, onStatusChange }: HarnessProps) => {
|
||||
const { status, progress, result, error, submit, cancel, captchaChallenge, clearCaptchaChallenge } =
|
||||
useAnalysis();
|
||||
const {
|
||||
status,
|
||||
progress,
|
||||
result,
|
||||
error,
|
||||
submit,
|
||||
cancel,
|
||||
captchaChallenge,
|
||||
clearCaptchaChallenge,
|
||||
} = useAnalysis();
|
||||
|
||||
useEffect(() => {
|
||||
onStatusChange?.(status);
|
||||
|
||||
@@ -105,8 +105,7 @@ export default function CaptchaChallenge({
|
||||
),
|
||||
).filter(
|
||||
(element) =>
|
||||
!element.hasAttribute("disabled") &&
|
||||
element.getAttribute("aria-hidden") !== "true",
|
||||
!element.hasAttribute("disabled") && element.getAttribute("aria-hidden") !== "true",
|
||||
);
|
||||
|
||||
if (focusableElements.length === 0) {
|
||||
|
||||
@@ -167,7 +167,6 @@ export default function FileDropZone({ onFileContent }: FileDropZoneProps) {
|
||||
role="button"
|
||||
aria-label="Drop or select an EML or TXT file"
|
||||
aria-describedby={describedBy}
|
||||
aria-invalid={error ? "true" : undefined}
|
||||
>
|
||||
<div className="mx-auto flex h-12 w-12 items-center justify-center rounded-full border border-info/30 bg-background/40">
|
||||
<FontAwesomeIcon icon={faArrowUpFromBracket} className="text-sm text-info" />
|
||||
|
||||
Reference in New Issue
Block a user