Skip to content

Commit 792b88a

Browse files
committed
Update useGridStackWidget.ts
1 parent edadfef commit 792b88a

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

src/components/dashboard/hooks/useGridStackWidget.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,6 @@ import { useCallback } from 'react';
22
import { useGridStackContext } from '../lib/grid-stack-context';
33
import { useGridStackWidgetContext } from '../lib/grid-stack-widget-context';
44

5-
/**
6-
* Hook that provides widget deletion using the existing GridStackWidgetContext.
7-
* No DOM traversal needed — the widget ID is already available via context.
8-
*/
95
export function useGridStackWidget() {
106
const { removeWidget } = useGridStackContext();
117
const { widget } = useGridStackWidgetContext();

0 commit comments

Comments
 (0)