From 67423d51b99f9a01a9588e3405f7cf920d968362 Mon Sep 17 00:00:00 2001 From: ManishMadan2882 Date: Fri, 25 Jul 2025 04:05:06 +0530 Subject: [PATCH] (feat:chunks) ask to edit, ui --- frontend/src/components/DocumentChunks.tsx | 125 ++++++++++++--------- 1 file changed, 74 insertions(+), 51 deletions(-) diff --git a/frontend/src/components/DocumentChunks.tsx b/frontend/src/components/DocumentChunks.tsx index c11f3559..ccdd5129 100644 --- a/frontend/src/components/DocumentChunks.tsx +++ b/frontend/src/components/DocumentChunks.tsx @@ -22,6 +22,7 @@ interface LineNumberedTextareaProps { placeholder?: string; ariaLabel?: string; className?: string; + editable?: boolean; } const LineNumberedTextarea: React.FC = ({ @@ -29,7 +30,8 @@ const LineNumberedTextarea: React.FC = ({ onChange, placeholder, ariaLabel, - className = '' + className = '', + editable = true }) => { const handleChange = (e: React.ChangeEvent) => { onChange(e.target.value); @@ -61,18 +63,29 @@ const LineNumberedTextarea: React.FC = ({ ))} -