Workout Management tests ready
This commit is contained in:
@@ -138,11 +138,12 @@ const Plans: React.FC<PlansProps> = ({ lang }) => {
|
||||
};
|
||||
|
||||
const onDragStart = (index: number) => {
|
||||
console.log('Drag Start:', index);
|
||||
dragItem.current = index;
|
||||
setDraggingIndex(index);
|
||||
};
|
||||
|
||||
const onDragEnter = (index: number) => {
|
||||
console.log('Drag Enter:', index);
|
||||
if (dragItem.current === null) return;
|
||||
if (dragItem.current === index) return;
|
||||
|
||||
@@ -153,6 +154,7 @@ const Plans: React.FC<PlansProps> = ({ lang }) => {
|
||||
setSteps(newSteps);
|
||||
dragItem.current = index;
|
||||
setDraggingIndex(index);
|
||||
console.log(`Swapped ${draggedItemContent.id} to ${index}`);
|
||||
};
|
||||
|
||||
const onDragEnd = () => {
|
||||
|
||||
Reference in New Issue
Block a user