fix(leaderboard): fix leaderboard mapping

This commit is contained in:
shafin-r
2026-01-19 10:35:51 +06:00
parent 9fd3a7b0e2
commit d208a9336f
12 changed files with 300 additions and 3184 deletions

View File

@ -29,3 +29,17 @@ export function formatTimeFilter(time: string) {
return "Today";
}
}
export function getRandomColor() {
const colors = [
"bg-red-700",
"bg-blue-700",
"bg-green-700",
"bg-yellow-700",
"bg-purple-700",
"bg-pink-700",
"bg-indigo-700",
"bg-gray-700",
];
return colors[Math.floor(Math.random() * colors.length)];
}