diff --git a/src/hooks/useDraggable.ts b/src/hooks/useDraggable.ts index 4a09e47..5a1acbc 100644 --- a/src/hooks/useDraggable.ts +++ b/src/hooks/useDraggable.ts @@ -18,7 +18,7 @@ export function useDraggable(): SetDraggableMethod { // Check if the hook is called inside an item. invariant( itemRefController !== undefined, - 'The useData hook can be used only inside an Item' + 'The useDraggable hook can be used only inside an Item' ); const setDraggable = useFunction((draggable) => { diff --git a/src/hooks/useGrid.ts b/src/hooks/useGrid.ts index 179c684..48110d7 100644 --- a/src/hooks/useGrid.ts +++ b/src/hooks/useGrid.ts @@ -25,7 +25,7 @@ export function useGrid(): GridData { // Check if the hook is called inside an item. invariant( eventController !== undefined && gridContext.grid !== undefined, - 'The useData hook can be used only inside an Item' + 'The useGrid hook can be used only inside an Item' ); // The context is not updated when the hook is trigger diff --git a/src/hooks/useVisibility.ts b/src/hooks/useVisibility.ts index 218203c..785548e 100644 --- a/src/hooks/useVisibility.ts +++ b/src/hooks/useVisibility.ts @@ -28,7 +28,7 @@ export function useVisibility(): SetVisibilityMethod { itemRefController !== undefined && layoutController !== undefined && eventController !== undefined, - 'The useData hook can be used only inside an Item' + 'The useVisibility hook can be used only inside an Item' ); // Set visibility.