File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed
Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -551,13 +551,13 @@ const fetchData = async () => {
551551 < div style = { styles . fileHeader } >
552552 < div style = { styles . fileHeaderContent } >
553553 < div style = { styles . fileHeaderIcon } >
554- { selectedFile . metrics . file_extension === '.py' ? '🐍' :
555- selectedFile . metrics . file_extension === '.js' ? '🟨' :
556- selectedFile . metrics . file_extension === '.ts' ? '🔷' :
557- selectedFile . metrics . file_extension === '.jsx' ? '⚛️' :
558- selectedFile . metrics . file_extension === '.tsx' ? '⚛️' :
559- selectedFile . metrics . file_extension === '.go' ? '🔵' : '📄' }
560- </ div >
554+ < img
555+ src = { getFileIconSrc ( selectedFile . metrics . file_extension ) }
556+ alt = { selectedFile . metrics . file_extension }
557+ style = { styles . fileHeaderImg }
558+ />
559+ </ div >
560+
561561 < div style = { { flex : 1 } } >
562562 < h2 style = { styles . fileHeaderTitle } > { selectedFile . file_name } </ h2 >
563563 < p style = { styles . fileHeaderPath } title = { selectedFile . file_path } >
You can’t perform that action at this time.
0 commit comments