Removed unnecessary filtering from the UI.
This commit is contained in:
parent
d34ccfb33c
commit
8ad81f02db
@ -1,5 +1,4 @@
|
|||||||
import React, { useEffect, useState, useRef } from "react";
|
import React, { useEffect, useState, useRef } from "react";
|
||||||
import { useProfile } from "../../hooks/useProfile";
|
|
||||||
import moment from "moment";
|
import moment from "moment";
|
||||||
import { useForm } from "react-hook-form";
|
import { useForm } from "react-hook-form";
|
||||||
import { zodResolver } from "@hookform/resolvers/zod";
|
import { zodResolver } from "@hookform/resolvers/zod";
|
||||||
@ -16,7 +15,6 @@ const schema = z.object({
|
|||||||
|
|
||||||
const ReportTaskComments = ({ commentsData, closeModal }) => {
|
const ReportTaskComments = ({ commentsData, closeModal }) => {
|
||||||
const [loading, setloading] = useState(false);
|
const [loading, setloading] = useState(false);
|
||||||
const { profile } = useProfile();
|
|
||||||
const [comments, setComment] = useState([]);
|
const [comments, setComment] = useState([]);
|
||||||
const [bgClass, setBgClass] = useState("");
|
const [bgClass, setBgClass] = useState("");
|
||||||
const {
|
const {
|
||||||
@ -38,7 +36,6 @@ const ReportTaskComments = ({ commentsData, closeModal }) => {
|
|||||||
containerRef.current.scrollTop = containerRef.current.scrollHeight;
|
containerRef.current.scrollTop = containerRef.current.scrollHeight;
|
||||||
}
|
}
|
||||||
}, [comments]);
|
}, [comments]);
|
||||||
const isLoggedUser = (usrId) => profile?.employeeInfo.id === usrId;
|
|
||||||
|
|
||||||
const onSubmit = async (data) => {
|
const onSubmit = async (data) => {
|
||||||
let sendComment = {
|
let sendComment = {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user