Skip to content

Commit 27210a0

Browse files
committed
fix: fix minor icon issue
1 parent 3745f16 commit 27210a0

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

src/components/Connections/ConnectionLink.tsx

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import { getConnectionByID } from "@flanksource-ui/api/services/connections";
2-
import { Icon } from "@flanksource-ui/ui/Icons/Icon";
32
import TextSkeletonLoader from "@flanksource-ui/ui/SkeletonLoader/TextSkeletonLoader";
43
import { useQuery } from "@tanstack/react-query";
54
import { Connection } from "./ConnectionFormModal";
5+
import ConnectionIcon from "./ConnectionIcon";
66

77
type 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
}

0 commit comments

Comments
 (0)