(event: DragEndEvent)
| 391 | }) |
| 392 | |
| 393 | function handleDragEnd(event: DragEndEvent) { |
| 394 | const { active, over } = event |
| 395 | if (active && over && active.id !== over.id) { |
| 396 | setData((data) => { |
| 397 | const oldIndex = dataIds.indexOf(active.id) |
| 398 | const newIndex = dataIds.indexOf(over.id) |
| 399 | return arrayMove(data, oldIndex, newIndex) |
| 400 | }) |
| 401 | } |
| 402 | } |
| 403 | |
| 404 | return ( |
| 405 | <Tabs |
nothing calls this directly
no outgoing calls
no test coverage detected