mirror of
https://github.com/webstudio-is/webstudio.git
synced 2026-11-08 13:05:08 +09:00
fix name
This commit is contained in:
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);
|
||||
|
||||
|
||||
Reference in new issue
Block a user