From 4e26868fdefe0b12a409b7d430cac6b8926c1c15 Mon Sep 17 00:00:00 2001 From: Rohit Rajan Date: Wed, 22 Oct 2025 15:22:02 +0530 Subject: [PATCH] fix: rm prev confirm discard logic --- src/components/recorder/RightSidePanel.tsx | 130 --------------------- 1 file changed, 130 deletions(-) diff --git a/src/components/recorder/RightSidePanel.tsx b/src/components/recorder/RightSidePanel.tsx index e506bc6a..e22ab08b 100644 --- a/src/components/recorder/RightSidePanel.tsx +++ b/src/components/recorder/RightSidePanel.tsx @@ -785,136 +785,6 @@ export const RightSidePanel: React.FC = ({ onFinishCapture )} - - - {browserSteps.map(step => ( - handleMouseEnter(step.id)} onMouseLeave={() => handleMouseLeave(step.id)} sx={{ padding: '10px', margin: '11px', borderRadius: '5px', position: 'relative', background: isDarkMode ? "#1d1c1cff" : 'white', color: isDarkMode ? "white" : 'black' }}> - { - step.type === 'text' && ( - <> - handleTextLabelChange(step.id, e.target.value)} - fullWidth - size="small" - margin="normal" - error={!!errors[step.id]} - helperText={errors[step.id]} - InputProps={{ - readOnly: confirmedTextSteps[step.id], - startAdornment: ( - - - - ) - }} - /> - - - - ) - }} - /> - {!confirmedTextSteps[step.id] ? ( - - - - - ) : !isCaptureTextConfirmed && ( - - - - )} - - )} - {step.type === 'screenshot' && ( - - - - {step.fullPage ? - t('right_panel.screenshot.display_fullpage') : - t('right_panel.screenshot.display_visible')} - - - )} - {step.type === 'list' && ( - Object.entries(step.fields).length === 0 ? ( - {t('right_panel.messages.list_empty')} - ) : ( - <> - {t('right_panel.messages.list_selected')} - {Object.entries(step.fields).map(([key, field]) => ( - - handleTextLabelChange(field.id, e.target.value, step.id, key)} - fullWidth - margin="normal" - InputProps={{ - readOnly: confirmedListTextFields[field.id]?.[key], - startAdornment: ( - - - - ) - }} - /> - - - - ) - }} - /> - {!confirmedListTextFields[step.id]?.[key] && ( - - - - - )} - - ))} - - ) - )} - - ))} - ); };