Skip to content

Commit ebd8402

Browse files
committed
fix: replace non existent icons with existing icons #release:major
1 parent 553fa5d commit ebd8402

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

app/components/ui/FileIcon.tsx

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,11 @@ export function FileIcon({ filename, size = 'md', className }: FileIconProps) {
3939
}
4040

4141
if (['java', 'class', 'jar'].includes(extension)) {
42-
return 'i-ph:file-java';
42+
return 'i-ph:file-code';
4343
}
4444

4545
if (['php'].includes(extension)) {
46-
return 'i-ph:file-php';
46+
return 'i-ph:file-code';
4747
}
4848

4949
if (['rb', 'ruby'].includes(extension)) {
@@ -63,15 +63,15 @@ export function FileIcon({ filename, size = 'md', className }: FileIconProps) {
6363
}
6464

6565
if (['swift'].includes(extension)) {
66-
return 'i-ph:file-swift';
66+
return 'i-ph:file-code';
6767
}
6868

6969
if (['kt', 'kotlin'].includes(extension)) {
70-
return 'i-ph:file-kotlin';
70+
return 'i-ph:file-code';
7171
}
7272

7373
if (['dart'].includes(extension)) {
74-
return 'i-ph:file-dart';
74+
return 'i-ph:file-code';
7575
}
7676

7777
// Config files
@@ -80,7 +80,7 @@ export function FileIcon({ filename, size = 'md', className }: FileIconProps) {
8080
}
8181

8282
if (['xml', 'svg'].includes(extension)) {
83-
return 'i-ph:file-xml';
83+
return 'i-ph:file-code';
8484
}
8585

8686
if (['toml'].includes(extension)) {
@@ -157,7 +157,7 @@ export function FileIcon({ filename, size = 'md', className }: FileIconProps) {
157157
}
158158

159159
if (filename.startsWith('Dockerfile')) {
160-
return 'i-ph:docker-logo';
160+
return 'i-ph:file-code';
161161
}
162162

163163
// Default

0 commit comments

Comments
 (0)