diff --git a/apps/web/components/plain/PlainContactForm.tsx b/apps/web/components/plain/PlainContactForm.tsx index e0b6e726c3..039d19f5cf 100644 --- a/apps/web/components/plain/PlainContactForm.tsx +++ b/apps/web/components/plain/PlainContactForm.tsx @@ -1,6 +1,6 @@ "use client"; -import { useState } from "react"; +import { Dispatch, SetStateAction, useState } from "react"; import { Button } from "@calcom/ui/components/button"; import { FileUploader, type FileData } from "@calcom/ui/components/file-uploader"; @@ -9,8 +9,7 @@ import { Icon } from "@calcom/ui/components/icon"; import { Popover, PopoverContent, PopoverTrigger } from "@calcom/ui/components/popover"; import { showToast } from "@calcom/ui/components/toast"; -const PlainContactForm = () => { - const [isOpen, setIsOpen] = useState(false); +const PlainContactForm = ({ open, setIsOpen }: { open: boolean, setIsOpen: Dispatch> }) => { const [isSubmitting, setIsSubmitting] = useState(false); const [isSubmitted, setIsSubmitted] = useState(false); const [isUploadingImage, setIsUploadingImage] = useState(false); @@ -55,6 +54,7 @@ const PlainContactForm = () => { setIsUploadingImage(false); const formData = new FormData(); + // eslint-disable-next-line @typescript-eslint/no-explicit-any uploadFormData.forEach(({ key, value }: any) => { formData.append(key, value); }); @@ -138,7 +138,7 @@ const PlainContactForm = () => { return (
- +