Skip to content

Commit 62a9f30

Browse files
committed
fix: linting
1 parent 71361cf commit 62a9f30

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

src/components/Graphs/Graph.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,12 +96,12 @@ const Graph: React.FC = () => {
9696
</ReactFlow>
9797

9898
<div className={styles.topLegendContainer}>
99-
<Legend legendItems={legendItems}/>
99+
<Legend legendItems={legendItems} />
100100
<Popover
101101
opener="filter-button"
102102
open={filterPopoverOpen}
103-
onClose={() => setFilterPopoverOpen(false)}
104103
placement="Top"
104+
onClose={() => setFilterPopoverOpen(false)}
105105
>
106106
<div className={styles.popoverButtonContainer}>
107107
<Button

src/components/Graphs/useGraph.ts

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { useMemo, useEffect, useState } from 'react';
22
import { useApiResource, useProvidersConfigResource } from '../../lib/api/useApiResource';
33
import { ManagedResourcesRequest } from '../../lib/api/types/crossplane/listManagedResources';
44
import { resourcesInterval } from '../../lib/shared/constants';
5-
import { Node, Edge, Position, MarkerType } from '@xyflow/react';
5+
import { Node, Edge, Position } from '@xyflow/react';
66
import dagre from 'dagre';
77
import { NodeData, ColorBy } from './types';
88
import { buildTreeData, generateColorMap } from './graphUtils';
@@ -25,9 +25,9 @@ function buildGraph(
2525
const colorKey: string =
2626
colorBy === 'source' ? n.providerType : colorBy === 'flux' ? (n.fluxName ?? 'default') : n.providerConfigName;
2727
const borderColor = colorMap[colorKey] || '#ccc';
28-
const backgroundColor = `${borderColor}08`;
29-
30-
const node: Node<NodeData> = {
28+
const backgroundColor = `${borderColor}08`;
29+
30+
const node: Node<NodeData> = {
3131
id: n.id,
3232
type: 'custom',
3333
data: { ...n },
@@ -56,7 +56,8 @@ function buildGraph(
5656
id: `e-${n.parentId}-${n.id}`,
5757
source: n.parentId,
5858
target: n.id,
59-
style: { strokeWidth: 2, stroke: '#888' }, });
59+
style: { strokeWidth: 2, stroke: '#888' },
60+
});
6061
}
6162
n.extraRefs?.forEach((refId) => {
6263
if (nodeMap.has(refId)) {

0 commit comments

Comments
 (0)