refactor: streamline imports in DraggableWidget for improved clarity
This commit is contained in:
parent
8cf12c75df
commit
ac5831f94e
|
@ -1,4 +1,4 @@
|
|||
import { forwardRef, useEffect, useImperativeHandle, useRef, useState } from "react";
|
||||
import { forwardRef, useRef, useState } from "react";
|
||||
import { gsap } from "gsap";
|
||||
import { Draggable } from "gsap/Draggable";
|
||||
|
||||
|
@ -20,9 +20,9 @@ import {
|
|||
import { useParams } from "react-router-dom";
|
||||
import { useSocketStore } from "../../../../store/builder/store";
|
||||
import useChartStore from "../../../../store/visualization/useChartStore";
|
||||
import { getUserData } from "../../../../functions/getUserData";
|
||||
|
||||
gsap.registerPlugin(Draggable);
|
||||
import { getUserData } from "../../../../functions/getUserData";
|
||||
|
||||
type Side = "top" | "bottom" | "left" | "right";
|
||||
|
||||
|
@ -47,7 +47,7 @@ export const DraggableWidget = forwardRef<HTMLDivElement, DraggableWidgetProps>(
|
|||
index,
|
||||
openKebabId,
|
||||
setOpenKebabId
|
||||
}) => {
|
||||
}, ref) => {
|
||||
|
||||
const { selectedZone, setSelectedZone } = useSelectedZoneStore();
|
||||
const widgetRef = useRef<HTMLDivElement | null>(null);
|
||||
|
|
Loading…
Reference in New Issue