From 630d2b96006b6dae8ffdf3beebdca706e0e6db18 Mon Sep 17 00:00:00 2001 From: Anmol Singh Bhatia <121005188+anmolsinghbhatia@users.noreply.github.com> Date: Mon, 29 Dec 2025 13:31:27 +0530 Subject: [PATCH] [WEB-5179] chore: icon utils code refactor #8458 --- packages/utils/src/get-icon-for-link.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; };