build fix

This commit is contained in:
pandeymangg
2024-06-05 18:20:34 +05:30
parent d595794fb6
commit 2b1ffa90f9

View File

@@ -1,5 +1,4 @@
import { useMemo, useState } from "preact/hooks";
// @ts-expect-error
import { JSXInternal } from "preact/src/jsx";
import { getOriginalFileNameFromUrl } from "@formbricks/lib/storage/utils";
@@ -101,6 +100,7 @@ export const FileInput = ({
const handleDragOver = (e: JSXInternal.TargetedDragEvent<HTMLLabelElement>) => {
e.preventDefault();
e.stopPropagation();
// @ts-expect-error
e.dataTransfer.dropEffect = "copy";
};
@@ -108,6 +108,7 @@ export const FileInput = ({
e.preventDefault();
e.stopPropagation();
// @ts-expect-error
handleFileSelection(e.dataTransfer.files);
};