From ac1be2ecba45a414f26820665b7abacb5c072d60 Mon Sep 17 00:00:00 2001
From: Matthias Konitzny <konitzny@ibr.cs.tu-bs.de>
Date: Fri, 9 Sep 2022 17:26:47 +0200
Subject: [PATCH] Fixed small typing errors

---
 src/common/graph/nodetype.ts                     | 1 -
 src/display/components/nodefilter/filtermenu.tsx | 4 ++--
 src/display/components/nodeinfo/neighbors.tsx    | 7 ++++---
 src/display/components/nodeinfo/nodeinfobar.tsx  | 5 +++--
 4 files changed, 9 insertions(+), 8 deletions(-)

diff --git a/src/common/graph/nodetype.ts b/src/common/graph/nodetype.ts
index c9be115..39862e6 100644
--- a/src/common/graph/nodetype.ts
+++ b/src/common/graph/nodetype.ts
@@ -1,5 +1,4 @@
 import { GraphElement } from "./graphelement";
-import { Node } from "./node";
 import { Graph } from "./graph";
 
 export interface NodeTypeData {
diff --git a/src/display/components/nodefilter/filtermenu.tsx b/src/display/components/nodefilter/filtermenu.tsx
index da764d5..1b839c7 100644
--- a/src/display/components/nodefilter/filtermenu.tsx
+++ b/src/display/components/nodefilter/filtermenu.tsx
@@ -2,10 +2,10 @@ import React, { useState } from "react";
 
 import "./filtermenu.css";
 import Label from "./label";
-import { NodeTypeData } from "../../../common/graph/graph";
+import { NodeType } from "../../../common/graph/nodetype";
 
 interface FilterMenuProps {
-    classes: Map<string, GraphObjectType>;
+    classes: Map<string, NodeType>;
     onVisibilityChange?: (visibility: Map<string, boolean>) => void;
 }
 
diff --git a/src/display/components/nodeinfo/neighbors.tsx b/src/display/components/nodeinfo/neighbors.tsx
index 3d135f5..fcef46c 100644
--- a/src/display/components/nodeinfo/neighbors.tsx
+++ b/src/display/components/nodeinfo/neighbors.tsx
@@ -1,14 +1,15 @@
 import React from "react";
 
-import { NodeTypeData, Node } from "../../../common/graph/graph";
 import FancyScrollbar from "../fancyscrollbar";
 import Collapsible from "../collapsible";
 
 import "./neighbors.css";
+import { NodeType } from "../../../common/graph/nodetype";
+import { Node } from "../../../common/graph/node";
 
 interface NeighborsProps {
     neighbors: Node[];
-    nodeColors?: Map<string, GraphObjectType>;
+    nodeColors?: Map<string, NodeType>;
     nodeClickedCallback?: (node: Node) => void;
 }
 
@@ -22,7 +23,7 @@ interface NeighborsProps {
 function Neighbors({
     neighbors,
     nodeClickedCallback,
-    nodeColors = new Map<string, GraphObjectType>(),
+    nodeColors = new Map<string, NodeType>(),
 }: NeighborsProps) {
     const classes = [
         ...new Set<string>(neighbors.map((node) => node.type.name)),
diff --git a/src/display/components/nodeinfo/nodeinfobar.tsx b/src/display/components/nodeinfo/nodeinfobar.tsx
index f457c19..8e140ea 100644
--- a/src/display/components/nodeinfo/nodeinfobar.tsx
+++ b/src/display/components/nodeinfo/nodeinfobar.tsx
@@ -1,16 +1,17 @@
 import React from "react";
 
 import "./nodeinfobar.css";
-import { NodeTypeData, Node } from "../../../common/graph/graph";
 import TitleArea from "./titlearea";
 import FancyScrollbar from "../fancyscrollbar";
 import MediaArea from "./mediaarea";
 import Neighbors from "./neighbors";
+import { NodeType } from "../../../common/graph/nodetype";
+import { Node } from "../../../common/graph/node";
 
 interface InfoBarProps {
     height: number;
     node: Node;
-    nodeColors?: Map<string, GraphObjectType>;
+    nodeColors?: Map<string, NodeType>;
     onClose?: () => void;
     nodeClickedCallback?: (node: Node) => void;
 }
-- 
GitLab