From f7b3c05a27359f1975a0ab2ab66e15262ec21ad8 Mon Sep 17 00:00:00 2001 From: Anang Yusman Date: Tue, 10 Jun 2025 14:53:39 +0800 Subject: [PATCH] feat:fix communication detail --- .../communications/questions/[title]/page.tsx | 8 ++--- .../communication/escalation-detail-form.tsx | 30 +++++++++++++++++++ .../escalation-detail-new-form.tsx | 2 ++ .../communication/questions-reply-form.tsx | 1 - .../form/ticketing/ticketing-detail-form.tsx | 1 + 5 files changed, 37 insertions(+), 5 deletions(-) diff --git a/app/[locale]/(protected)/supervisor/communications/questions/[title]/page.tsx b/app/[locale]/(protected)/supervisor/communications/questions/[title]/page.tsx index 6d5d7f86..cb5829c3 100644 --- a/app/[locale]/(protected)/supervisor/communications/questions/[title]/page.tsx +++ b/app/[locale]/(protected)/supervisor/communications/questions/[title]/page.tsx @@ -66,7 +66,7 @@ export default function Questions() { Email - @@ -89,7 +89,7 @@ export default function Questions() { color="#2563eb" /> Instagram - + */} Whatsapp - Youtube - + */} { + setOpenEmergencyModal(true); + }; + return (
@@ -179,6 +186,29 @@ export default function FormDetailEscalation() {

{detail.message}

+
+ {detail?.typeId === 6 && detail?.emergencyIssue ? ( +
+
+ +
+
+ ) : null} + + {detail?.emergencyIssue && ( + setOpenEmergencyModal(false)} + data={detail.emergencyIssue} + /> + )} +
)} diff --git a/components/form/communication/escalation-detail-new-form.tsx b/components/form/communication/escalation-detail-new-form.tsx index 3b94a704..bc4b001b 100644 --- a/components/form/communication/escalation-detail-new-form.tsx +++ b/components/form/communication/escalation-detail-new-form.tsx @@ -45,6 +45,8 @@ import { import { ChevronDownIcon } from "lucide-react"; import { getOperatorUser } from "@/service/management-user/management-user"; import { getCookiesDecrypt } from "@/lib/utils"; +import { htmlToString } from "@/utils/globals"; +import InfoLainnyaModal from "../ticketing/info-lainnya"; const taskSchema = z.object({ title: z.string().min(1, { message: "Judul diperlukan" }), diff --git a/components/form/communication/questions-reply-form.tsx b/components/form/communication/questions-reply-form.tsx index 9e48ff40..b684de96 100644 --- a/components/form/communication/questions-reply-form.tsx +++ b/components/form/communication/questions-reply-form.tsx @@ -603,7 +603,6 @@ export default function FormQuestionsReply() { ); } }} - disabled /> {op.label} diff --git a/components/form/ticketing/ticketing-detail-form.tsx b/components/form/ticketing/ticketing-detail-form.tsx index 81c02ec4..a3d25740 100644 --- a/components/form/ticketing/ticketing-detail-form.tsx +++ b/components/form/ticketing/ticketing-detail-form.tsx @@ -588,6 +588,7 @@ export default function FormDetailTicketing() { { if (e.target.checked) { setSelectedOperator((prev) => [