Workout Management tests ready

This commit is contained in:
AG
2025-12-08 22:21:10 +02:00
parent d2dc474f0f
commit f32661d892
7 changed files with 183 additions and 55 deletions

View File

@@ -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 = () => {