feat: -rm del icon from TextField

This commit is contained in:
karishmas6
2024-10-10 07:28:08 +05:30
parent ff099741a5
commit 4fc9b02b32

View File

@@ -488,22 +488,12 @@ export const RightSidePanel: React.FC<RightSidePanelProps> = ({ onFinishCapture
margin="normal" margin="normal"
error={!!errors[step.id]} error={!!errors[step.id]}
helperText={errors[step.id]} helperText={errors[step.id]}
onMouseEnter={() => handleMouseEnter(step.id)}
onMouseLeave={() => handleMouseLeave(step.id)}
InputProps={{ InputProps={{
readOnly: confirmedTextSteps[step.id], readOnly: confirmedTextSteps[step.id],
startAdornment: ( startAdornment: (
<InputAdornment position="start"> <InputAdornment position="start">
<EditIcon /> <EditIcon />
</InputAdornment> </InputAdornment>
),
endAdornment: confirmedTextSteps[step.id] && hoverStates[step.id] && (
<InputAdornment position="end">
<DeleteIcon
onClick={() => handlePairDelete()}
sx={{ cursor: 'pointer', color: 'red' }}
/>
</InputAdornment>
) )
}} }}
/> />