Skip to content
Snippets Groups Projects
Commit 43e2dcb5 authored by ali asaria's avatar ali asaria
Browse files

placeholder for add node button

parent 6ad6cd11
No related branches found
No related tags found
No related merge requests found
import { Background, ControlButton, Controls, ReactFlow } from '@xyflow/react'; import { Background, ControlButton, Controls, ReactFlow } from '@xyflow/react';
import { PlusCircleIcon } from 'lucide-react';
import React from 'react'; import React from 'react';
function generateNodes(workflow: any) { function generateNodes(workflow: any) {
...@@ -64,6 +65,11 @@ export default function WorkflowCanvas({ selectedWorkflow }) { ...@@ -64,6 +65,11 @@ export default function WorkflowCanvas({ selectedWorkflow }) {
* *
</ControlButton> </ControlButton>
</Controls> </Controls>
<PlusCircleIcon
style={{ position: 'absolute', bottom: '20px', right: '20px' }}
strokeWidth={2}
size={32}
/>
</ReactFlow> </ReactFlow>
); );
} }
...@@ -215,4 +215,11 @@ textarea { ...@@ -215,4 +215,11 @@ textarea {
margin: 0 5px 5px 0; margin: 0 5px 5px 0;
font-size: 14px; font-size: 14px;
font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif
}
/* React flow asks us not to hide attribution but it is
MIT licensed so we have the right to modify the source
code if we want */
.react-flow__attribution a {
display: none;
} }
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment