Skip to content

Commit 630d2b9

Browse files
[WEB-5179] chore: icon utils code refactor #8458
1 parent ec215bb commit 630d2b9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/utils/src/get-icon-for-link.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ import {
1616
FileCode,
1717
Mail,
1818
Chrome,
19+
Link2,
1920
} from "lucide-react";
20-
import { LinkIcon } from "@plane/propel/icons";
2121

2222
type IconMatcher = {
2323
pattern: RegExp;
@@ -60,5 +60,5 @@ export const getIconForLink = (url: string) => {
6060
const allMatchers = [...SOCIAL_MEDIA_MATCHERS, ...PRODUCTIVITY_MATCHERS, ...FILE_TYPE_MATCHERS, ...OTHER_MATCHERS];
6161

6262
const matchedIcon = allMatchers.find(({ pattern }) => pattern.test(lowerUrl));
63-
return matchedIcon?.icon ?? LinkIcon;
63+
return matchedIcon?.icon ?? Link2;
6464
};

0 commit comments

Comments
 (0)