From eadf16ea7c79aec09b338cfb8d198a044a74acd9 Mon Sep 17 00:00:00 2001 From: Dave Bauman Date: Thu, 4 Jan 2024 14:54:18 -0500 Subject: [PATCH] fix: Replace deprecated icons --- .../frontend/src/shared/file-icon-factory.tsx | 8 +++---- packages/frontend/src/shared/icon-factory.tsx | 22 +++++++++++++------ 2 files changed, 19 insertions(+), 11 deletions(-) diff --git a/packages/frontend/src/shared/file-icon-factory.tsx b/packages/frontend/src/shared/file-icon-factory.tsx index d38b1a1c2..1a497700e 100644 --- a/packages/frontend/src/shared/file-icon-factory.tsx +++ b/packages/frontend/src/shared/file-icon-factory.tsx @@ -27,15 +27,15 @@ import { } from 'react-icons/ai'; import { BsImage } from 'react-icons/bs'; import { DiDatabase } from 'react-icons/di'; +import { FaJava } from 'react-icons/fa'; import { GiHouseKeys, GiZipper } from 'react-icons/gi'; -import { GoMarkGithub } from 'react-icons/go'; import { SiApachegroovy, SiClojure, + SiGithub, SiGnubash, SiGo, SiHtml5, - SiJava, SiJavascript, SiJenkins, SiJson, @@ -182,7 +182,7 @@ const icons: Record = { color: COLORS.blue }, 'text/x-java-source': { - icon: SiJava, + icon: FaJava, color: COLORS.red }, 'text/x-python': { @@ -224,7 +224,7 @@ const icons: Record = { color: COLORS.yellow }, '.gitignore': { - icon: GoMarkGithub, + icon: SiGithub, color: COLORS.ignore }, diff --git a/packages/frontend/src/shared/icon-factory.tsx b/packages/frontend/src/shared/icon-factory.tsx index b2082db54..7da58a7c7 100644 --- a/packages/frontend/src/shared/icon-factory.tsx +++ b/packages/frontend/src/shared/icon-factory.tsx @@ -63,17 +63,14 @@ import { GoChevronRight, GoChevronUp, GoCircleSlash, - GoClippy, GoCommentDiscussion, GoGitCommit, GoLinkExternal, GoLocation, - GoMarkGithub, GoReply, GoRss, GoSearch, GoSync, - GoTrashcan, GoX } from 'react-icons/go'; import { @@ -89,8 +86,18 @@ import { GrTemplate, GrUndo } from 'react-icons/gr'; -import { MdAdd, MdFileDownload, MdOndemandVideo, MdPrint, MdSchedule, MdShare, MdUpdate } from 'react-icons/md'; +import { + MdAdd, + MdContentCopy, + MdFileDownload, + MdOndemandVideo, + MdPrint, + MdSchedule, + MdShare, + MdUpdate +} from 'react-icons/md'; import { RiVipCrownLine } from 'react-icons/ri'; +import { SiGithub } from 'react-icons/si'; import { VscBriefcase, VscCalendar, @@ -113,6 +120,7 @@ import { VscPreview, VscRocket, VscSettingsGear, + VscTrash, VscWarning } from 'react-icons/vsc'; @@ -134,7 +142,7 @@ const icons = { chevronUp: GoChevronUp, clone: GrClone, close: GoX, - clipboard: GoClippy, + clipboard: MdContentCopy, code: VscCode, comments: GoCommentDiscussion, commit: GoGitCommit, @@ -149,7 +157,7 @@ const icons = { fileChange: FiFileText, filter: FaFilter, folderOpened: VscFolderOpened, - github: GoMarkGithub, + github: SiGithub, graphql: GrGraphQl, heart: FaRegHeart, heartFilled: FaHeart, @@ -202,7 +210,7 @@ const icons = { team: FaUsers, template: GrTemplate, time: AiOutlineFieldTime, - trash: GoTrashcan, + trash: VscTrash, unlike: FaHeartBroken, video: MdOndemandVideo, views: GrOverview,