From ebd840263c80fa8aab44a46a24079d00c0d96b06 Mon Sep 17 00:00:00 2001 From: KevIsDev Date: Mon, 12 May 2025 02:51:05 +0100 Subject: [PATCH] fix: replace non existent icons with existing icons #release:major --- app/components/ui/FileIcon.tsx | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/app/components/ui/FileIcon.tsx b/app/components/ui/FileIcon.tsx index 05f69796..00d96715 100644 --- a/app/components/ui/FileIcon.tsx +++ b/app/components/ui/FileIcon.tsx @@ -39,11 +39,11 @@ export function FileIcon({ filename, size = 'md', className }: FileIconProps) { } if (['java', 'class', 'jar'].includes(extension)) { - return 'i-ph:file-java'; + return 'i-ph:file-code'; } if (['php'].includes(extension)) { - return 'i-ph:file-php'; + return 'i-ph:file-code'; } if (['rb', 'ruby'].includes(extension)) { @@ -63,15 +63,15 @@ export function FileIcon({ filename, size = 'md', className }: FileIconProps) { } if (['swift'].includes(extension)) { - return 'i-ph:file-swift'; + return 'i-ph:file-code'; } if (['kt', 'kotlin'].includes(extension)) { - return 'i-ph:file-kotlin'; + return 'i-ph:file-code'; } if (['dart'].includes(extension)) { - return 'i-ph:file-dart'; + return 'i-ph:file-code'; } // Config files @@ -80,7 +80,7 @@ export function FileIcon({ filename, size = 'md', className }: FileIconProps) { } if (['xml', 'svg'].includes(extension)) { - return 'i-ph:file-xml'; + return 'i-ph:file-code'; } if (['toml'].includes(extension)) { @@ -157,7 +157,7 @@ export function FileIcon({ filename, size = 'md', className }: FileIconProps) { } if (filename.startsWith('Dockerfile')) { - return 'i-ph:docker-logo'; + return 'i-ph:file-code'; } // Default