chore: lint

This commit is contained in:
karishmas6
2024-10-10 07:18:02 +05:30
parent c678351f5c
commit 23b3684eb0

View File

@@ -121,14 +121,14 @@ export const RightSidePanel: React.FC<RightSidePanelProps> = ({ onFinishCapture
}; };
const handlePairDelete = () => { const handlePairDelete = () => {
// deletePair(index - 1).then((updatedWorkflow) => { // deletePair(index - 1).then((updatedWorkflow) => {
// updateWorkflow(updatedWorkflow); // updateWorkflow(updatedWorkflow);
// }).catch((error) => { // }).catch((error) => {
// console.error(error); // console.error(error);
// }); // });
// }; // };
console.log("handlePairDelete") console.log("handlePairDelete")
} }
const handleTextLabelChange = (id: number, label: string, listId?: number, fieldKey?: string) => { const handleTextLabelChange = (id: number, label: string, listId?: number, fieldKey?: string) => {
if (listId !== undefined && fieldKey !== undefined) { if (listId !== undefined && fieldKey !== undefined) {
@@ -465,20 +465,20 @@ export const RightSidePanel: React.FC<RightSidePanelProps> = ({ onFinishCapture
{ {
step.type === 'text' && ( step.type === 'text' && (
<> <>
{confirmedTextSteps[step.id] && hoverStates[step.id] && ( {confirmedTextSteps[step.id] && hoverStates[step.id] && (
<IconButton <IconButton
onClick={() => handlePairDelete()} onClick={() => handlePairDelete()}
sx={{ sx={{
position: 'absolute', position: 'absolute',
top: 5, top: 5,
right: 5, right: 5,
color: 'red', color: 'red',
p: 0 p: 0
}} }}
> >
<DeleteIcon /> <DeleteIcon />
</IconButton> </IconButton>
)} )}
<TextField <TextField
label="Label" label="Label"
value={textLabels[step.id] || step.label || ''} value={textLabels[step.id] || step.label || ''}
@@ -498,7 +498,7 @@ export const RightSidePanel: React.FC<RightSidePanelProps> = ({ onFinishCapture
), ),
endAdornment: confirmedTextSteps[step.id] && hoverStates[step.id] && ( endAdornment: confirmedTextSteps[step.id] && hoverStates[step.id] && (
<InputAdornment position="end"> <InputAdornment position="end">
<DeleteIcon <DeleteIcon
onClick={() => handlePairDelete()} onClick={() => handlePairDelete()}
sx={{ cursor: 'pointer', color: 'red' }} sx={{ cursor: 'pointer', color: 'red' }}
/> />