diff --git a/src/components/dashboard/inquiryPrivacy/privacy-office/RowActions/Forms/RejectFileForm.jsx b/src/components/dashboard/inquiryPrivacy/privacy-office/RowActions/Forms/RejectFileForm.jsx index 42080a3..3e1fa56 100644 --- a/src/components/dashboard/inquiryPrivacy/privacy-office/RowActions/Forms/RejectFileForm.jsx +++ b/src/components/dashboard/inquiryPrivacy/privacy-office/RowActions/Forms/RejectFileForm.jsx @@ -1,3 +1,39 @@ -export default function RejectFileForm({ mutate }) { - return
RejectFileForm
; +import { Box, Button, DialogActions, TextField } from "@mui/material"; +import { useState } from "react"; +import { Controller, useForm } from "react-hook-form"; + +export default function RejectFileForm({ mutate, onClose }) { + const [isSubmitting, setIsSubmitting] = useState(false); + const { control, handleSubmit } = useForm({ + defaultValues: { + expert_description: "", + }, + }); + + const onSubmit = (data) => { + console.log("file rejected"); + + console.log(data); + setIsSubmitting(true); + mutate(); + onClose(); + }; + + return ( + + } + /> + + + + + + ); }