added pannel hide and EditWidgetOption component

This commit is contained in:
Nalvazhuthi
2025-04-02 17:51:44 +05:30
37 changed files with 1388 additions and 244 deletions

View File

@@ -207,10 +207,11 @@ export const DraggableWidget = ({
}
};
useClickOutside(chartWidget, () => {
setSelectedChartId(null);
});
// useClickOutside(chartWidget, () => {
// setSelectedChartId(null);
// });
console.log('isPanelHidden: ', isPanelHidden);
return (
<>
<div
@@ -225,7 +226,6 @@ export const DraggableWidget = ({
onDragOver={handleDragOver}
onDrop={handleDrop}
style={{
opacity: isPanelHidden ? 0 : 1,
pointerEvents: isPanelHidden ? "none" : "auto",
}}
ref={chartWidget}