Skip to content

Commit

Permalink
Frontend linting
Browse files Browse the repository at this point in the history
  • Loading branch information
ivntsng committed Nov 14, 2024
1 parent fd31805 commit fa10a28
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions frontend/src/components/listing/FileUpload.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import {
useRef,
useState,
} from "react";
import { MouseEvent } from "react";
import {
DropzoneOptions,
DropzoneState,
Expand Down Expand Up @@ -306,11 +307,7 @@ export const FileInput = forwardRef<
const { dropzoneState, isFileTooBig } = useFileUpload();
const rootProps = dropzoneState.getRootProps();

const handleClick = (e: React.MouseEvent) => {
if ((e.target as HTMLElement).closest("button")) {
e.stopPropagation();
return;
}
const handleClick = (e: MouseEvent<HTMLElement>) => {
rootProps.onClick?.(e);
};

Expand Down

0 comments on commit fa10a28

Please sign in to comment.