Skip to content

armgit / plane

Public Imported from GitHub
0

πŸ”₯πŸ”₯πŸ”₯ Open-source Jira, Linear, Monday, and ClickUp alternative. Plane is a modern project management platform to manage tasks, sprints, docs, and triage.

[WEB-5179] chore: icon utils code refactor #8458

Anmol Singh Bhatia630d2b96006b
diff --git a/packages/utils/src/get-icon-for-link.ts b/packages/utils/src/get-icon-for-link.ts
index 1310142e92..0c703a81c9 100644
--- a/packages/utils/src/get-icon-for-link.ts
+++ b/packages/utils/src/get-icon-for-link.ts
@@ -16,8 +16,8 @@ import {
FileCode,
Mail,
Chrome,
+ Link2,
} from "lucide-react";
-import { LinkIcon } from "@plane/propel/icons";
type IconMatcher = {
pattern: RegExp;
@@ -60,5 +60,5 @@ export const getIconForLink = (url: string) => {
const allMatchers = [...SOCIAL_MEDIA_MATCHERS, ...PRODUCTIVITY_MATCHERS, ...FILE_TYPE_MATCHERS, ...OTHER_MATCHERS];
const matchedIcon = allMatchers.find(({ pattern }) => pattern.test(lowerUrl));
- return matchedIcon?.icon ?? LinkIcon;
+ return matchedIcon?.icon ?? Link2;
};