From 9aa6ca961740d6bf1298436702226fa460b69d5b Mon Sep 17 00:00:00 2001 From: baslani Date: Tue, 18 Nov 2025 09:41:12 +0330 Subject: [PATCH] implemented refer modal --- .../RowActions/Forms/ReferForm.jsx | 33 +++++++++++++++++-- 1 file changed, 30 insertions(+), 3 deletions(-) diff --git a/src/components/dashboard/inquiryPrivacy/privacy-office/RowActions/Forms/ReferForm.jsx b/src/components/dashboard/inquiryPrivacy/privacy-office/RowActions/Forms/ReferForm.jsx index 543bc33..46af9d4 100644 --- a/src/components/dashboard/inquiryPrivacy/privacy-office/RowActions/Forms/ReferForm.jsx +++ b/src/components/dashboard/inquiryPrivacy/privacy-office/RowActions/Forms/ReferForm.jsx @@ -1,9 +1,36 @@ -import { Box } from "@mui/material"; +import { Box, Button, DialogActions, TextField } from "@mui/material"; +import { useState } from "react"; +import { Controller, useForm } from "react-hook-form"; + +export default function ReferForm({ mutate, onClose }) { + const [isSubmitting, setIsSubmitting] = useState(false); + const { control, handleSubmit } = useForm({ + defaultValues: { + expert_description: "", + }, + }); + + const onSubmit = (data) => { + console.log(data); + setIsSubmitting(true); + mutate(); + }; -export default function ReferForm({ mutate }) { return ( -
+ } + /> + + + +
); }