mirror of
https://github.com/openziti/zrok.git
synced 2025-01-03 04:29:19 +01:00
deal with dynamic handles later (#799)
This commit is contained in:
parent
c7dbb37f0a
commit
2dbd6a520d
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user