Skip to content

Commit

Permalink
fix: Replace deprecated icons
Browse files Browse the repository at this point in the history
  • Loading branch information
baumandm committed Jan 4, 2024
1 parent e195225 commit eadf16e
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 11 deletions.
8 changes: 4 additions & 4 deletions packages/frontend/src/shared/file-icon-factory.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -182,7 +182,7 @@ const icons: Record<string, FileIcon> = {
color: COLORS.blue
},
'text/x-java-source': {
icon: SiJava,
icon: FaJava,
color: COLORS.red
},
'text/x-python': {
Expand Down Expand Up @@ -224,7 +224,7 @@ const icons: Record<string, FileIcon> = {
color: COLORS.yellow
},
'.gitignore': {
icon: GoMarkGithub,
icon: SiGithub,
color: COLORS.ignore
},

Expand Down
22 changes: 15 additions & 7 deletions packages/frontend/src/shared/icon-factory.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -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,
Expand All @@ -113,6 +120,7 @@ import {
VscPreview,
VscRocket,
VscSettingsGear,
VscTrash,
VscWarning
} from 'react-icons/vsc';

Expand All @@ -134,7 +142,7 @@ const icons = {
chevronUp: GoChevronUp,
clone: GrClone,
close: GoX,
clipboard: GoClippy,
clipboard: MdContentCopy,
code: VscCode,
comments: GoCommentDiscussion,
commit: GoGitCommit,
Expand All @@ -149,7 +157,7 @@ const icons = {
fileChange: FiFileText,
filter: FaFilter,
folderOpened: VscFolderOpened,
github: GoMarkGithub,
github: SiGithub,
graphql: GrGraphQl,
heart: FaRegHeart,
heartFilled: FaHeart,
Expand Down Expand Up @@ -202,7 +210,7 @@ const icons = {
team: FaUsers,
template: GrTemplate,
time: AiOutlineFieldTime,
trash: GoTrashcan,
trash: VscTrash,
unlike: FaHeartBroken,
video: MdOndemandVideo,
views: GrOverview,
Expand Down

0 comments on commit eadf16e

Please sign in to comment.