mirror of
https://github.com/AykutSarac/jsoncrack.com.git
synced 2025-01-27 15:22:56 +08:00
add typing
This commit is contained in:
parent
40cfefa0d4
commit
4b4fa2650b
@ -4,7 +4,7 @@ import { CustomNode } from "src/components/CustomNode";
|
||||
import { useConfig } from "src/hocs/config";
|
||||
import { getEdgeNodes } from "src/containers/LiveEditor/helpers";
|
||||
|
||||
export const Graph = () => {
|
||||
export const Graph: React.FC = () => {
|
||||
const { json, settings } = useConfig();
|
||||
const [nodes, setNodes] = React.useState<NodeData[]>([]);
|
||||
const [edges, setEdges] = React.useState<EdgeData[]>([]);
|
||||
|
Loading…
x
Reference in New Issue
Block a user