Skip to content

Commit 613d1f8

Browse files
chore: link icon migration
1 parent 15739fc commit 613d1f8

File tree

6 files changed

+13
-15
lines changed

6 files changed

+13
-15
lines changed

apps/space/core/components/issues/peek-overview/header.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import React from "react";
22
import { observer } from "mobx-react";
3-
import { Link2, MoveRight } from "lucide-react";
3+
import { MoveRight } from "lucide-react";
44
import { Listbox, Transition } from "@headlessui/react";
55
// ui
6-
import { CenterPanelIcon, FullScreenPanelIcon, SidePanelIcon } from "@plane/propel/icons";
6+
import { LinkIcon , CenterPanelIcon, FullScreenPanelIcon, SidePanelIcon } from "@plane/propel/icons";
77
import { TOAST_TYPE, setToast } from "@plane/propel/toast";
88
// helpers
99
import { copyTextToClipboard } from "@/helpers/string.helper";
@@ -117,7 +117,7 @@ export const PeekOverviewHeader = observer(function PeekOverviewHeader(props: Pr
117117
className="focus:outline-none text-custom-text-300 hover:text-custom-text-200"
118118
tabIndex={1}
119119
>
120-
<Link2 className="h-4 w-4 -rotate-45" />
120+
<LinkIcon className="h-4 w-4 -rotate-45" />
121121
</button>
122122
</div>
123123
)}

apps/web/ce/components/issues/issue-layouts/utils.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
import type { FC } from "react";
2-
import { CalendarDays, LayersIcon, Link2, Paperclip } from "lucide-react";
2+
import { CalendarDays, LayersIcon, Paperclip } from "lucide-react";
33
// types
44
import { ISSUE_GROUP_BY_OPTIONS } from "@plane/constants";
55
import type { ISvgIcons } from "@plane/propel/icons";
66
import {
7+
LinkIcon,
78
CycleIcon,
89
StatePropertyIcon,
910
ModuleIcon,
@@ -82,7 +83,7 @@ export const SpreadSheetPropertyIconMap: Record<string, FC<ISvgIcons>> = {
8283
PriorityPropertyIcon: PriorityPropertyIcon,
8384
StartDatePropertyIcon: StartDatePropertyIcon,
8485
StatePropertyIcon: StatePropertyIcon,
85-
Link2: Link2,
86+
Link2: LinkIcon,
8687
Paperclip: Paperclip,
8788
LayersIcon: LayersIcon,
8889
};

apps/web/core/components/issues/peek-overview/header.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@ import type { FC } from "react";
22
import { useRef } from "react";
33
import { observer } from "mobx-react";
44
import Link from "next/link";
5-
import { Link2, MoveDiagonal, MoveRight } from "lucide-react";
5+
import { MoveDiagonal, MoveRight } from "lucide-react";
66
// plane imports
77
import { WORK_ITEM_TRACKER_EVENTS } from "@plane/constants";
88
import { useTranslation } from "@plane/i18n";
9-
import { CenterPanelIcon, FullScreenPanelIcon, SidePanelIcon } from "@plane/propel/icons";
9+
import { LinkIcon , CenterPanelIcon, FullScreenPanelIcon, SidePanelIcon } from "@plane/propel/icons";
1010
import { TOAST_TYPE, setToast } from "@plane/propel/toast";
1111
import { Tooltip } from "@plane/propel/tooltip";
1212
import type { TNameDescriptionLoader } from "@plane/types";
@@ -227,7 +227,7 @@ export const IssuePeekOverviewHeader = observer(function IssuePeekOverviewHeader
227227
)}
228228
<Tooltip tooltipContent={t("common.actions.copy_link")} isMobile={isMobile}>
229229
<button type="button" onClick={handleCopyText}>
230-
<Link2 className="h-4 w-4 -rotate-45 text-custom-text-300 hover:text-custom-text-200" />
230+
<LinkIcon className="h-4 w-4 -rotate-45 text-custom-text-300 hover:text-custom-text-200" />
231231
</button>
232232
</Tooltip>
233233
{issueDetails && (

packages/propel/src/emoji-icon-picker/lucide-icons.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -117,8 +117,6 @@ import {
117117
Layers,
118118
Layout,
119119
LifeBuoy,
120-
Link,
121-
Link2,
122120
Linkedin,
123121
List,
124122
Loader,
@@ -288,7 +286,7 @@ export const LUCIDE_ICONS_LIST = [
288286
{ name: "Layout", element: Layout },
289287
{ name: "LifeBuoy", element: LifeBuoy },
290288
{ name: "Link", element: LinkIcon },
291-
{ name: "Link2", element: Link2 },
289+
{ name: "Link2", element: LinkIcon },
292290
{ name: "Linkedin", element: Linkedin },
293291
{ name: "List", element: List },
294292
{ name: "Loader", element: Loader },

packages/ui/src/constants/icons.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,6 @@ import {
117117
Layers,
118118
Layout,
119119
LifeBuoy,
120-
Link2,
121120
Linkedin,
122121
List,
123122
Loader,
@@ -893,7 +892,7 @@ export const LUCIDE_ICONS_LIST = [
893892
{ name: "Layout", element: Layout },
894893
{ name: "LifeBuoy", element: LifeBuoy },
895894
{ name: "Link", element: LinkIcon },
896-
{ name: "Link2", element: Link2 },
895+
{ name: "Link2", element: LinkIcon },
897896
{ name: "Linkedin", element: Linkedin },
898897
{ name: "List", element: List },
899898
{ name: "Loader", element: Loader },

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,
2019
} 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 ?? Link2;
63+
return matchedIcon?.icon ?? LinkIcon;
6464
};

0 commit comments

Comments
 (0)