This commit is contained in:
Roman Pominov committed 2022-07-28 13:51:46 +03:00
1 parent 787b38b287
commit af7fa62dec
1 file changed
+2 -2
@@ -32,7 +32,7 @@ export type UseDragProps = {
onEnd: () => void;
};
export type UseDropTargetHandlers = {
export type UseDragHandlers = {
rootRef: (element: HTMLElement | null) => void;
};
@@ -44,7 +44,7 @@ export const useDrag = ({
// eslint-disable-next-line @typescript-eslint/no-empty-function
onShiftChange = () => {},
onEnd,
}: UseDragProps): UseDropTargetHandlers => {
}: UseDragProps): UseDragHandlers => {
const state = useRef<State>(initialState);
const rootRef = useRef<HTMLElement | null>(null);