Skip to content

Open source website builder and Webflow alternative. Webstudio is an advanced visual builder that connects to any headless CMS, supports all CSS properties, and can be hosted anywhere, including with us.

minor fixes

Roman Pominovee9514860fd3
diff --git a/apps/designer/app/designer/shared/tree/tree.tsx b/apps/designer/app/designer/shared/tree/tree.tsx
index e8703784ba..f37a559e65 100644
--- a/apps/designer/app/designer/shared/tree/tree.tsx
+++ b/apps/designer/app/designer/shared/tree/tree.tsx
@@ -1,11 +1,4 @@
-import {
- useState,
- useMemo,
- forwardRef,
- type ElementRef,
- useRef,
- useCallback,
-} from "react";
+import { useState, useMemo, forwardRef, useRef, useCallback } from "react";
import { type Instance, components } from "@webstudio-is/react-sdk";
import {
Flex,
@@ -57,7 +50,7 @@ type NodeProps = {
} & ExpandState;
// eslint-disable-next-line react/display-name
-const Node = forwardRef<ElementRef<typeof Collapsible.Root>, NodeProps>(
+const Node = forwardRef<HTMLDivElement, NodeProps>(
({ instance, level, ...commonProps }, ref) => {
const {
getIsExpanded,
@@ -139,7 +132,7 @@ type TreeProps = {
};
// eslint-disable-next-line react/display-name
-const BaseTree = forwardRef<ElementRef<typeof Node>, TreeProps & ExpandState>(
+const BaseTree = forwardRef<HTMLDivElement, TreeProps & ExpandState>(
(
{
root,
diff --git a/packages/design-system/src/components/primitives/dnd/use-drop.ts b/packages/design-system/src/components/primitives/dnd/use-drop.ts
index 6d029bfe4b..e716d3ec51 100644
--- a/packages/design-system/src/components/primitives/dnd/use-drop.ts
+++ b/packages/design-system/src/components/primitives/dnd/use-drop.ts
@@ -34,7 +34,7 @@ export type UseDropProps<Data> = {
// To check that the element can qualify as a target
elementToData: (target: Element) => Data | false;
- // Distance from an edge to determine "area" argument for swapDropTarget
+ // Distance from an edge to determine "area" value for swapDropTarget
edgeDistanceThreshold?: number;
// Given the potential target that has passed the elementToData check,