Skip to content

Commit

Permalink
deal with dynamic handles later (#799)
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelquigley committed Dec 18, 2024
1 parent c7dbb37 commit 2dbd6a5
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions ui100/src/EnvironmentNode.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,10 @@ import {Grid2} from "@mui/material";
import EnvironmentIcon from "@mui/icons-material/Computer";

const EnvironmentNode = ({ data }) => {
let shareHandle = <Handle type="source" position={Position.Bottom} />;
if(data.empty) {
shareHandle = <></>;
}
return (
<>
<Handle type="target" position={Position.Top} />
{shareHandle}
<Handle type="source" position={Position.Bottom} />
<Grid2 container sx={{ flexGrow: 1, p: 1 }} alignItems="center">
<Grid2 display="flex"><EnvironmentIcon sx={{ fontSize: 15, mr: 0.5 }}/></Grid2>
<Grid2 display="flex">{data.label}</Grid2>
Expand Down

0 comments on commit 2dbd6a5

Please sign in to comment.