File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -49,37 +49,7 @@ interface GitHubItem {
4949 html_url : string ;
5050}
5151
52- const LANGUAGE_COLORS : Record < string , string > = {
53- JavaScript : "#f1e05a" ,
54- TypeScript : "#3178c6" ,
55- Python : "#3572A5" ,
56- Java : "#b07219" ,
57- HTML : "#e34c26" ,
58- CSS : "#563d7c" ,
59- C : "#555555" ,
60- "C++" : "#f34b7d" ,
61- "C#" : "#178600" ,
62- PHP : "#4F5D95" ,
63- Ruby : "#701516" ,
64- Go : "#00ADD8" ,
65- Rust : "#dea584" ,
66- Kotlin : "#A97BFF" ,
67- Swift : "#F05138" ,
68- } ;
69-
70- const getLanguageFromRepo = ( repoName : string ) : string => {
71- const lowerRepo = repoName . toLowerCase ( ) ;
72-
73- if ( lowerRepo . includes ( "react" ) || lowerRepo . includes ( "js" ) ) return "JavaScript" ;
74- if ( lowerRepo . includes ( "ts" ) || lowerRepo . includes ( "typescript" ) ) return "TypeScript" ;
75- if ( lowerRepo . includes ( "python" ) || lowerRepo . includes ( "py" ) ) return "Python" ;
76- if ( lowerRepo . includes ( "java" ) ) return "Java" ;
77- if ( lowerRepo . includes ( "html" ) ) return "HTML" ;
78- if ( lowerRepo . includes ( "css" ) ) return "CSS" ;
79-
80- return "Unknown" ;
81- } ;
82- const Home : React . FC = ( ) => {
52+ const Tracker : React . FC = ( ) => {
8353
8454 const theme = useTheme ( ) ;
8555 const userContext = useContext ( UserContext ) ;
@@ -594,4 +564,4 @@ const Home: React.FC = () => {
594564 ) ;
595565} ;
596566
597- export default Home ;
567+ export default Tracker ;
You can’t perform that action at this time.
0 commit comments