diff --git a/app/pnpm-lock.yaml b/app/pnpm-lock.yaml index feb5ce46f50..1bdf5803e6a 100644 --- a/app/pnpm-lock.yaml +++ b/app/pnpm-lock.yaml @@ -806,9 +806,6 @@ packages: engines: {node: '>=18'} hasBin: true - '@preact/signals-core@1.8.0': - resolution: {integrity: sha512-OBvUsRZqNmjzCZXWLxkZfhcgT+Fk8DDcT/8vD6a1xhDemodyy87UJRJfASMuSD8FaAIeGgGm85ydXhm7lr4fyA==} - '@react-aria/breadcrumbs@3.5.13': resolution: {integrity: sha512-G1Gqf/P6kVdfs94ovwP18fTWuIxadIQgHsXS08JEVcFVYMjb9YjqnEBaohUxD1tq2WldMbYw53ahQblT4NTG+g==} peerDependencies: @@ -4508,8 +4505,6 @@ snapshots: dependencies: playwright: 1.48.0 - '@preact/signals-core@1.8.0': {} - '@react-aria/breadcrumbs@3.5.13(react@18.3.1)': dependencies: '@react-aria/i18n': 3.11.1(react@18.3.1) diff --git a/app/src/components/dnd/DragHandle.tsx b/app/src/components/dnd/DragHandle.tsx index d63bfd047ed..69616f112b2 100644 --- a/app/src/components/dnd/DragHandle.tsx +++ b/app/src/components/dnd/DragHandle.tsx @@ -1,10 +1,27 @@ import React from "react"; +import { DraggableAttributes } from "@dnd-kit/core"; import { css } from "@emotion/react"; -function DragHandle() { +// This is the type of the listeners object from useSortable +// However it is not exported from @dnd-kit/core so we have to redefine it here +// eslint-disable-next-line @typescript-eslint/ban-types +type Listeners = Record; + +function DragHandle( + { + listeners, + attributes, + }: { + listeners?: Listeners; + attributes: DraggableAttributes; + }, + ref: React.Ref +) { return (