Skip to content

Commit add2d11

Browse files
committed
chore: move extension list to end of file instead
1 parent 32efa9f commit add2d11

File tree

1 file changed

+19
-19
lines changed

1 file changed

+19
-19
lines changed

packages/react/src/core/FileTree.tsx

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -19,25 +19,6 @@ interface Props {
1919
className?: string;
2020
}
2121

22-
const extensionsToIcons = new Map([
23-
['ts', 'i-ph-file-ts-duotone'],
24-
25-
['cjs', 'i-ph-file-js-duotone'],
26-
['mjs', 'i-ph-file-js-duotone'],
27-
['js', 'i-ph-file-js-duotone'],
28-
29-
['html', 'i-ph-file-html-duotone'],
30-
31-
['css', 'i-ph-file-css-duotone'],
32-
33-
['md', 'i-ph-file-md-duotone'],
34-
35-
['gif', 'i-ph-file-image-duotone'],
36-
['jpg', 'i-ph-file-image-duotone'],
37-
['jpeg', 'i-ph-file-image-duotone'],
38-
['png', 'i-ph-file-image-duotone'],
39-
]);
40-
4122
export function FileTree({
4223
files,
4324
onFileSelect,
@@ -390,3 +371,22 @@ function getFileExtension(filename: string) {
390371

391372
return extension;
392373
}
374+
375+
const extensionsToIcons = new Map([
376+
['ts', 'i-ph-file-ts-duotone'],
377+
378+
['cjs', 'i-ph-file-js-duotone'],
379+
['mjs', 'i-ph-file-js-duotone'],
380+
['js', 'i-ph-file-js-duotone'],
381+
382+
['html', 'i-ph-file-html-duotone'],
383+
384+
['css', 'i-ph-file-css-duotone'],
385+
386+
['md', 'i-ph-file-md-duotone'],
387+
388+
['gif', 'i-ph-file-image-duotone'],
389+
['jpg', 'i-ph-file-image-duotone'],
390+
['jpeg', 'i-ph-file-image-duotone'],
391+
['png', 'i-ph-file-image-duotone'],
392+
]);

0 commit comments

Comments
 (0)