Skip to content

Commit 61ebe81

Browse files
authored
Merge pull request #576 from devtron-labs/fix/graph-visualizer
fix: graph visualizer caption
2 parents 47ded64 + cd70c00 commit 61ebe81

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@devtron-labs/devtron-fe-common-lib",
3-
"version": "1.6.0-patch-2-beta-1",
3+
"version": "1.6.0-patch-2-beta-2",
44
"description": "Supporting common component library",
55
"type": "module",
66
"main": "dist/index.js",

src/Shared/Components/GraphVisualizer/GraphVisualizer.tsx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import {
88
PanOnScrollMode,
99
ReactFlow,
1010
ReactFlowInstance,
11+
ReactFlowProps,
1112
ReactFlowProvider,
1213
Viewport,
1314
} from '@xyflow/react'
@@ -19,6 +20,10 @@ import { processEdges, processNodes } from './utils'
1920

2021
import './styles.scss'
2122

23+
const options: ReactFlowProps['proOptions'] = {
24+
hideAttribution: true,
25+
}
26+
2227
export const GraphVisualizer = ({
2328
nodes: initialNodes,
2429
edges: initialEdges,
@@ -139,6 +144,7 @@ export const GraphVisualizer = ({
139144
nodesDraggable={false}
140145
elementsSelectable={false}
141146
onInit={onInit}
147+
proOptions={options}
142148
/>
143149
</div>
144150
</ReactFlowProvider>

0 commit comments

Comments
 (0)