From 92f8a4b0301b53f0d3d8c7a6ef3d358eec218fb9 Mon Sep 17 00:00:00 2001 From: Sabda Yagra Date: Wed, 10 Sep 2025 11:53:27 +0700 Subject: [PATCH] fixing --- components/form/content/spit-convert-form.tsx | 1 - .../form/ticketing/ticketing-detail-form.tsx | 110 ++++++++++++------ lib/menus.ts | 82 +++++++------ 3 files changed, 122 insertions(+), 71 deletions(-) diff --git a/components/form/content/spit-convert-form.tsx b/components/form/content/spit-convert-form.tsx index 3d87fdf2..111b1e0d 100644 --- a/components/form/content/spit-convert-form.tsx +++ b/components/form/content/spit-convert-form.tsx @@ -169,7 +169,6 @@ export default function FormConvertSPIT() { const t = useTranslations("Form"); const { id } = useParams() as { id: string }; const [isAlreadySaved, setIsAlreadySaved] = useState(false); - const { control, handleSubmit, diff --git a/components/form/ticketing/ticketing-detail-form.tsx b/components/form/ticketing/ticketing-detail-form.tsx index 1b3941c9..23a74a95 100644 --- a/components/form/ticketing/ticketing-detail-form.tsx +++ b/components/form/ticketing/ticketing-detail-form.tsx @@ -709,9 +709,9 @@ export default function FormDetailTicketing({ id }: Props) { }; return ( -
- {/* Header */} -
+
+ {/* Header - tetap di atas */} +
{(detail?.title ?? "").split(" ").slice(0, 25).join(" ") + @@ -723,10 +723,29 @@ export default function FormDetailTicketing({ id }: Props) {
- {/* Chat Messages */} -
-
- {ticketReply.map((m) => { + {/* Chat Messages - scrollable */} +
+ {!detail ? ( +
+
+
+ + + +
+
Pilih issue untuk melihat detail
+
+
+ ) : ( + ticketReply.map((m) => { const isUser = m.user.fullname !== "Agent"; return (
); - })} -
+ }) + )} +
- {/* Input Box */} -
-
+ {/* Input Box - tetap di bawah */} +
+
+ {/* Translate button */} + + + {/* Textarea */}