Removed unnecessary filtering from the UI.

This commit is contained in:
Pramod Mahajan 2025-05-04 02:48:54 +05:30
parent d34ccfb33c
commit 8ad81f02db

View File

@ -1,5 +1,4 @@
import React, { useEffect, useState, useRef } from "react";
import { useProfile } from "../../hooks/useProfile";
import moment from "moment";
import { useForm } from "react-hook-form";
import { zodResolver } from "@hookform/resolvers/zod";
@ -16,7 +15,6 @@ const schema = z.object({
const ReportTaskComments = ({ commentsData, closeModal }) => {
const [loading, setloading] = useState(false);
const { profile } = useProfile();
const [comments, setComment] = useState([]);
const [bgClass, setBgClass] = useState("");
const {
@ -38,7 +36,6 @@ const ReportTaskComments = ({ commentsData, closeModal }) => {
containerRef.current.scrollTop = containerRef.current.scrollHeight;
}
}, [comments]);
const isLoggedUser = (usrId) => profile?.employeeInfo.id === usrId;
const onSubmit = async (data) => {
let sendComment = {