Skip to content

Commit d52aaf7

Browse files
Use Component to retain return types etc.
1 parent 0d0140a commit d52aaf7

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/drag-overlay.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { Portal } from "solid-js/web";
2-
import { JSX, ParentComponent, Show } from "solid-js";
2+
import { Component, JSX, Show } from "solid-js";
33

44
import { Draggable, useDragDropContext } from "./drag-drop-context";
55
import { transformStyle } from "./style";
@@ -11,7 +11,7 @@ interface DragOverlayProps {
1111
style?: JSX.CSSProperties;
1212
}
1313

14-
const DragOverlay = (props: DragOverlayProps) => {
14+
const DragOverlay: Component<DragOverlayProps> = (props) => {
1515
const [state, { onDragStart, onDragEnd, setOverlay, clearOverlay }] =
1616
useDragDropContext()!;
1717

0 commit comments

Comments
 (0)