fix(leaderboard): fix leaderboard mapping
This commit is contained in:
@ -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)];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user