({ active, over })
| 125 | ); |
| 126 | |
| 127 | function handleSortEnd({ active, over }) { |
| 128 | onSortEnd({ |
| 129 | oldIndex: items.findIndex(item => item.id === active.id), |
| 130 | newIndex: items.findIndex(item => item.id === over.id), |
| 131 | }); |
| 132 | } |
| 133 | |
| 134 | return ( |
| 135 | <div |
nothing calls this directly
no outgoing calls
no test coverage detected