Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/hooks/useDraggable.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<SetDraggableMethod>((draggable) => {
Expand Down
2 changes: 1 addition & 1 deletion src/hooks/useGrid.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/hooks/useVisibility.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down