chore: lint
This commit is contained in:
@@ -121,13 +121,13 @@ 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) => {
|
||||||
@@ -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 || ''}
|
||||||
|
|||||||
Reference in New Issue
Block a user