refactor(research): update graph component to accept API data as props
This commit is contained in:
parent
5b0df7fa8b
commit
7c4d71500c
1 changed files with 1 additions and 6 deletions
|
|
@ -1,11 +1,6 @@
|
|||
import { useState } from "react"
|
||||
|
||||
interface ResearchNode {
|
||||
name: string
|
||||
abbr: string
|
||||
x: number
|
||||
y: number
|
||||
}
|
||||
import type { ResearchNode } from "@/api/research"
|
||||
|
||||
interface ResearchGraphProps {
|
||||
nodes: ResearchNode[]
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue