File tree Expand file tree Collapse file tree 1 file changed +2
-7
lines changed
src/components/Connections Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Original file line number Diff line number Diff line change 11import { getConnectionByID } from "@flanksource-ui/api/services/connections" ;
2- import { Icon } from "@flanksource-ui/ui/Icons/Icon" ;
32import TextSkeletonLoader from "@flanksource-ui/ui/SkeletonLoader/TextSkeletonLoader" ;
43import { useQuery } from "@tanstack/react-query" ;
54import { Connection } from "./ConnectionFormModal" ;
5+ import ConnectionIcon from "./ConnectionIcon" ;
66
77type ConnectionLinkProps = {
88 connection ?: Pick < Connection , "name" | "type" | "id" > ;
@@ -29,10 +29,5 @@ export default function ConnectionLink({
2929 return null ;
3030 }
3131
32- return (
33- < div className = "flex flex-row items-center space-x-2" >
34- < Icon name = { connectionData . type } className = "h-auto w-6" />
35- < div > { connectionData . name } </ div >
36- </ div >
37- ) ;
32+ return < ConnectionIcon showLabel connection = { connectionData } /> ;
3833}
You can’t perform that action at this time.
0 commit comments