chore: lint

This commit is contained in:
amhsirak
2025-01-09 19:16:00 +05:30
parent 70e99f8c85
commit 880cabbc53

View File

@@ -18,7 +18,7 @@ interface LeftSidePanelContentProps {
handleSelectPairForEdit: (pair: WhereWhatPair, index: number) => void; handleSelectPairForEdit: (pair: WhereWhatPair, index: number) => void;
} }
export const LeftSidePanelContent = ({ workflow, updateWorkflow, recordingName, handleSelectPairForEdit}: LeftSidePanelContentProps) => { export const LeftSidePanelContent = ({ workflow, updateWorkflow, recordingName, handleSelectPairForEdit }: LeftSidePanelContentProps) => {
const [activeId, setActiveId] = React.useState<number>(0); const [activeId, setActiveId] = React.useState<number>(0);
const [breakpoints, setBreakpoints] = React.useState<boolean[]>([]); const [breakpoints, setBreakpoints] = React.useState<boolean[]>([]);
const [showEditModal, setShowEditModal] = useState(false); const [showEditModal, setShowEditModal] = useState(false);
@@ -67,12 +67,12 @@ export const LeftSidePanelContent = ({ workflow, updateWorkflow, recordingName,
return ( return (
<div> <div>
<Tooltip title='Add pair' placement='left' arrow> <Tooltip title='Add pair' placement='left' arrow>
<div style={{ float: 'right'}}> <div style={{ float: 'right' }}>
<AddButton <AddButton
handleClick={handleAddPair} handleClick={handleAddPair}
title='' title=''
hoverEffect={false} hoverEffect={false}
style={{color: 'white', background: '#1976d2'}} style={{ color: 'white', background: '#1976d2' }}
/> />
</div> </div>
</Tooltip> </Tooltip>
@@ -86,20 +86,20 @@ export const LeftSidePanelContent = ({ workflow, updateWorkflow, recordingName,
/> />
</GenericModal> </GenericModal>
<div> <div>
{ {
workflow.workflow.map((pair, i, workflow, ) => workflow.workflow.map((pair, i, workflow,) =>
<Pair <Pair
handleBreakpoint={() => handleBreakpointClick(i)} handleBreakpoint={() => handleBreakpointClick(i)}
isActive={ activeId === i + 1} isActive={activeId === i + 1}
key={workflow.length - i} key={workflow.length - i}
index={workflow.length - i} index={workflow.length - i}
pair={pair} pair={pair}
updateWorkflow={updateWorkflow} updateWorkflow={updateWorkflow}
numberOfPairs={workflow.length} numberOfPairs={workflow.length}
handleSelectPairForEdit={handleSelectPairForEdit} handleSelectPairForEdit={handleSelectPairForEdit}
/>) />)
} }
</div> </div>
</div> </div>
); );
}; };