fixed drag and drop issue
This commit is contained in:
@@ -78,7 +78,7 @@ function PluginsContainer({sidebarContent, onWidgetsUpdate}){
|
||||
target="_blank" rel="noopener noreferrer"
|
||||
className="tw-flex tw-mt-6 btn"
|
||||
>
|
||||
Request new plugin support
|
||||
Request new plugin
|
||||
</Button>
|
||||
</div>
|
||||
)
|
||||
|
||||
@@ -18,7 +18,7 @@ function transformWidgets(widgets, widgetRefs, isTopLevel=true) {
|
||||
isTopLevel: isTopLevel,
|
||||
widgetRef: widgetRefs.current[widget.id],
|
||||
children: widget.children.length > 0 ? transformWidgets(widget.children, widgetRefs, false) : []
|
||||
}));
|
||||
}))
|
||||
}
|
||||
|
||||
|
||||
@@ -62,6 +62,13 @@ function TreeviewContainer() {
|
||||
|
||||
</Tree>
|
||||
|
||||
{
|
||||
Object.keys(transformedContent || {}).length === 0 &&
|
||||
<div className="tw-text-sm tw-place-content-center">
|
||||
Start adding widgets to view it in tree view
|
||||
</div>
|
||||
}
|
||||
|
||||
</div>
|
||||
</div>
|
||||
)
|
||||
|
||||
@@ -45,6 +45,10 @@ function Share({children, className=""}){
|
||||
footer={null}
|
||||
open={shareModalOpen}>
|
||||
|
||||
<div className="tw-text-lg">
|
||||
Share and help speed up development
|
||||
</div>
|
||||
|
||||
<div className="tw-mt-5 tw-flex tw-place-content-center tw-w-full tw-place-items-center">
|
||||
<a onClick={onCopy}
|
||||
className="hover:!tw-bg-gray-100 hover:!tw-color-black !tw-text-4xl"
|
||||
|
||||
Reference in New Issue
Block a user