@@ -6,15 +6,14 @@ import {
6
6
Node ,
7
7
Edge ,
8
8
} from "@xyflow/react" ;
9
- import { Button , Skeleton } from "@radix-ui/themes" ;
9
+ import { Button } from "@radix-ui/themes" ;
10
10
import { Endpoint } from "../../service/api/types" ;
11
11
import { layoutNodesAndEdges } from "../../service/dagree" ;
12
12
import { generateDarkColors } from "../../service/groupColor" ;
13
13
import MethodNodeContent from "./MethodNodeContent" ;
14
14
import GroupNodeContent from "./GroupNodeContent" ;
15
15
16
16
export default function ApiTree ( props : {
17
- chartLoading : boolean ;
18
17
busy : boolean ;
19
18
endpoints : Endpoint [ ] ;
20
19
onChangeEndpointGroup : ( group : string , endpoint : Endpoint ) => void ;
@@ -161,21 +160,7 @@ export default function ApiTree(props: {
161
160
setEdges ( layoutedEdges ) ;
162
161
}
163
162
164
- return props . chartLoading ? (
165
- < div className = "h-full flex flex-col justify-center items-center gap-5" >
166
- < Skeleton width = "200px" height = "75px" />
167
- < div className = "flex gap-5" >
168
- < Skeleton width = "200px" height = "75px" />
169
- < Skeleton width = "200px" height = "75px" />
170
- </ div >
171
- < div className = "flex gap-5" >
172
- < Skeleton width = "200px" height = "75px" />
173
- < Skeleton width = "200px" height = "75px" />
174
- < Skeleton width = "200px" height = "75px" />
175
- < Skeleton width = "200px" height = "75px" />
176
- </ div >
177
- </ div >
178
- ) : (
163
+ return (
179
164
< div className = "relative h-full" >
180
165
< Button
181
166
className = "absolute top-4 left-4 z-10"
0 commit comments