popup not working yet need to resolve bug
This commit is contained in:
parent
7f1685e767
commit
34121f8580
7 changed files with 150 additions and 27 deletions
|
|
@ -1,5 +1,16 @@
|
|||
import { prompt } from "../data_assets/prompt";
|
||||
|
||||
export function Sidebar(){
|
||||
|
||||
function onDragStart(event:React.DragEvent<any>,nodeType){
|
||||
event.dataTransfer.setData('application/reactflow',nodeType)
|
||||
event.dataTransfer.effectAllowed = 'move'
|
||||
event.dataTransfer.setData('json',JSON.stringify(prompt));
|
||||
}
|
||||
|
||||
return(
|
||||
<div className="h-full w-48 bg-black absolute z-10" > ablue blue </div>
|
||||
<div className="h-full w-48 bg-slate-200 absolute z-10 flex flex-col">
|
||||
<div className="w-full text-center border border-black cursor-grab" onDragStart={(event)=>onDragStart(event,'promptNode')}> prompt Node</div>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue