Skip to content

Commit 6c30763

Browse files
committed
Fix typo
1 parent b0f4ca9 commit 6c30763

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • apps/dashboard/src/app/(main)/(protected)/projects/[projectId]/widget-playground

apps/dashboard/src/app/(main)/(protected)/projects/[projectId]/widget-playground/page-client.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1016,7 +1016,7 @@ const SwappableWidgetInstanceGridContext = React.createContext<{
10161016

10171017
function SwappableWidgetInstanceGrid(props: { gridRef: RefState<WidgetInstanceGrid>, isSingleColumnMode: boolean | "auto", allowVariableHeight: boolean, isStatic: boolean }) {
10181018
const [draggingType, setDraggingType] = useState<"element" | "var-height" | null>(null);
1019-
const [activeElementInitialRect, setActiveElementInitialRect] = useState<DOMRect | null>(null); // onDragOver's event.active.rect.current.initial is the intial rect when the *swap* starts, not the drag, so we want to store the initial rect of the drag somewhere
1019+
const [activeElementInitialRect, setActiveElementInitialRect] = useState<DOMRect | null>(null); // onDragOver's event.active.rect.current.initial is the initial rect when the *swap* starts, not the drag, so we want to store the initial rect of the drag somewhere
10201020
const [overElementPosition, setOverElementPosition] = useState<[number, number] | null>(null);
10211021
const [overVarHeightSlot, setOverVarHeightSlot] = useState<["before", string] | ["end-of", number] | null>(null);
10221022
const [hoverElementSwap, setHoverElementSwap] = useState<[string, [number, number, number, number, number, number]] | null>(null);

0 commit comments

Comments
 (0)