diff --git a/packages/orchestrator-ui-components/src/components/WfoTable/WfoTable/WfoDragHandler.tsx b/packages/orchestrator-ui-components/src/components/WfoTable/WfoTable/WfoDragHandler.tsx index 9d08b1a66..f635baeff 100644 --- a/packages/orchestrator-ui-components/src/components/WfoTable/WfoTable/WfoDragHandler.tsx +++ b/packages/orchestrator-ui-components/src/components/WfoTable/WfoTable/WfoDragHandler.tsx @@ -19,15 +19,15 @@ export const WfoDragHandler: FC = ({ fieldName, onUpdateColumWidth, }) => { - // const [position, setPosition] = useState({ x: 0, y: 200 }); + const [position, setPosition] = useState({ x: 0, y: 0 }); - // const onDrag: DraggableEventHandler = (_, data) => { - // setPosition({ x: data.x, y: data.y }); - // }; + const onDrag: DraggableEventHandler = (_, data) => { + setPosition({ x: data.x, y: data.y }); + }; - // const resetPosition = () => { - // setPosition({ x: 0, y: 0 }); - // }; + const resetPosition = () => { + setPosition({ x: 0, y: 0 }); + }; const { dragAndDropStyle } = useWithOrchestratorTheme(getWfoTableStyles); let startWidth: number; @@ -36,8 +36,8 @@ export const WfoDragHandler: FC = ({
{ if (headerRowRef.current) { @@ -51,7 +51,7 @@ export const WfoDragHandler: FC = ({ fieldName, newWidth > 50 ? newWidth : 50, ); - // resetPosition(); + resetPosition(); } }} > diff --git a/packages/orchestrator-ui-components/src/components/WfoTable/WfoTable/WfoTableHeaderRow.tsx b/packages/orchestrator-ui-components/src/components/WfoTable/WfoTable/WfoTableHeaderRow.tsx index ec6f4b8f0..82d47c209 100644 --- a/packages/orchestrator-ui-components/src/components/WfoTable/WfoTable/WfoTableHeaderRow.tsx +++ b/packages/orchestrator-ui-components/src/components/WfoTable/WfoTable/WfoTableHeaderRow.tsx @@ -54,8 +54,6 @@ export const WfoTableHeaderRow = ({ const dataSortingConfiguration = dataSorting.find( (dataSorting) => dataSorting.field === fieldName, ); - let startDragPosition = 0; - let startWidth = 0; if (columnConfig.columnType === ColumnType.DATA) { return (