From b9349a8f50802d2599c893e1a839a1e6c2e12149 Mon Sep 17 00:00:00 2001 From: karishmas6 Date: Fri, 13 Sep 2024 23:37:40 +0530 Subject: [PATCH] feat: handle list text field confirmation --- src/components/organisms/RightSidePanel.tsx | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/components/organisms/RightSidePanel.tsx b/src/components/organisms/RightSidePanel.tsx index d906d318..b36159d0 100644 --- a/src/components/organisms/RightSidePanel.tsx +++ b/src/components/organisms/RightSidePanel.tsx @@ -78,6 +78,17 @@ export const RightSidePanel: React.FC = ({ onFinishCapture }); }; + const handleListTextFieldConfirm = (listId: number, fieldKey: string) => { + setConfirmedListTextFields(prev => ({ + ...prev, + [listId]: { + ...(prev[listId] || {}), + [fieldKey]: true + } + })); + }; + + const getTextSettingsObject = useCallback(() => { const settings: Record = {}; browserSteps.forEach(step => {