Skip to content

Commit d178ea1

Browse files
Merge pull request #627 from ananyadarna/fix/tracker-component-rename
fix: rename component from Home to Tracker in Tracker.tsx
2 parents 5d8263d + 155f993 commit d178ea1

1 file changed

Lines changed: 2 additions & 32 deletions

File tree

src/pages/Tracker/Tracker.tsx

Lines changed: 2 additions & 32 deletions
Original file line numberDiff line numberDiff 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;

0 commit comments

Comments
 (0)