mirror of
https://github.com/openziti/zrok.git
synced 2025-06-22 10:41:40 +02: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";
|
import EnvironmentIcon from "@mui/icons-material/Computer";
|
||||||
|
|
||||||
const EnvironmentNode = ({ data }) => {
|
const EnvironmentNode = ({ data }) => {
|
||||||
let shareHandle = <Handle type="source" position={Position.Bottom} />;
|
|
||||||
if(data.empty) {
|
|
||||||
shareHandle = <></>;
|
|
||||||
}
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<Handle type="target" position={Position.Top} />
|
<Handle type="target" position={Position.Top} />
|
||||||
{shareHandle}
|
<Handle type="source" position={Position.Bottom} />
|
||||||
<Grid2 container sx={{ flexGrow: 1, p: 1 }} alignItems="center">
|
<Grid2 container sx={{ flexGrow: 1, p: 1 }} alignItems="center">
|
||||||
<Grid2 display="flex"><EnvironmentIcon sx={{ fontSize: 15, mr: 0.5 }}/></Grid2>
|
<Grid2 display="flex"><EnvironmentIcon sx={{ fontSize: 15, mr: 0.5 }}/></Grid2>
|
||||||
<Grid2 display="flex">{data.label}</Grid2>
|
<Grid2 display="flex">{data.label}</Grid2>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user