From affe1bce94020b2a7441d4ffabe1db5217d24e14 Mon Sep 17 00:00:00 2001 From: Sabda Yagra Date: Thu, 4 Sep 2025 00:05:14 +0700 Subject: [PATCH] fixing --- .../form/communication/collaboration-form.tsx | 152 +++++++++++++++++- .../communication/escalation-detail-form.tsx | 27 ++-- .../form/communication/internal-form.tsx | 140 +++++++++++++++- components/form/content/audio-detail-form.tsx | 33 ++-- components/form/content/image-detail-form.tsx | 53 +++--- components/form/content/teks-detail-form.tsx | 35 ++-- components/form/content/video-detail-form.tsx | 31 ++-- 7 files changed, 392 insertions(+), 79 deletions(-) diff --git a/components/form/communication/collaboration-form.tsx b/components/form/communication/collaboration-form.tsx index 530d4831..12b35c4a 100644 --- a/components/form/communication/collaboration-form.tsx +++ b/components/form/communication/collaboration-form.tsx @@ -163,7 +163,7 @@ export default function FormCollaboration() { } const save = async (data: TaskSchema) => { - setIsSubmitting(true); + setIsSubmitting(true); MySwal.fire({ title: "Menyimpan...", @@ -192,7 +192,7 @@ export default function FormCollaboration() { console.log("Form Data Submitted:", requestData); console.log("response", response); - Swal.close(); + Swal.close(); MySwal.fire({ title: "Sukses", @@ -255,6 +255,78 @@ export default function FormCollaboration() { Priority* @@ -268,7 +340,7 @@ export default function FormCollaboration() { }), }} /> - + */}
@@ -283,8 +355,82 @@ export default function FormCollaboration() { onChange={handleChange} formatOptionLabel={formatOptionLabel} isMulti={false} + styles={{ + control: (base, state) => ({ + ...base, + backgroundColor: + document.documentElement.classList.contains("dark") + ? "#1f2937" // bg-gray-800 + : "#ffffff", // bg-white + color: document.documentElement.classList.contains("dark") + ? "#f9fafb" // text-gray-100 + : "#111827", // text-gray-900 + borderColor: state.isFocused + ? "#2563eb" + : base.borderColor, + boxShadow: state.isFocused + ? "0 0 0 1px #2563eb" + : base.boxShadow, + "&:hover": { + borderColor: "#2563eb", + }, + }), + menu: (base) => ({ + ...base, + backgroundColor: + document.documentElement.classList.contains("dark") + ? "#1f2937" + : "#ffffff", + color: document.documentElement.classList.contains("dark") + ? "#f9fafb" + : "#111827", + }), + option: (base, state) => ({ + ...base, + backgroundColor: state.isSelected + ? "#2563eb" + : state.isFocused + ? "#2563eb33" + : document.documentElement.classList.contains("dark") + ? "#1f2937" + : "#ffffff", + color: state.isSelected + ? "#ffffff" + : document.documentElement.classList.contains("dark") + ? "#f9fafb" + : "#111827", + cursor: "pointer", + }), + singleValue: (base) => ({ + ...base, + color: document.documentElement.classList.contains("dark") + ? "#f9fafb" + : "#111827", + }), + placeholder: (base) => ({ + ...base, + color: document.documentElement.classList.contains("dark") + ? "#9ca3af" + : "#6b7280", + }), + }} />
+ + {/*
+ +