diff --git a/app/(manage)/manage/users/users-client.tsx b/app/(manage)/manage/users/users-client.tsx
index 9a26dae..96c9905 100644
--- a/app/(manage)/manage/users/users-client.tsx
+++ b/app/(manage)/manage/users/users-client.tsx
@@ -3,7 +3,7 @@
import { useEffect, useMemo, useState } from "react"
import Image from "next/image"
import { authClient } from "@/lib/auth-client"
-import { Loader2, SearchIcon, BanIcon, UserCheckIcon, ShieldIcon, UsersIcon } from "lucide-react"
+import { Loader2, SearchIcon, BanIcon, UserCheckIcon, UsersIcon } from "lucide-react"
type Role = "user" | "contributor" | "admin"
@@ -30,21 +30,6 @@ function getInitial(name: string) {
return name?.charAt(0)?.toUpperCase() || "?"
}
-function RoleBadge({ role }: { role: Role }) {
- const config = {
- admin: { bg: "bg-red-500/10", text: "text-red-400", icon: ShieldIcon },
- contributor: { bg: "bg-blue-500/10", text: "text-blue-400", icon: UserCheckIcon },
- user: { bg: "bg-text/5", text: "text-text/50", icon: UsersIcon },
- }[role]
- const Icon = config.icon
- return (
-
-
- {role.charAt(0).toUpperCase() + role.slice(1)}
-
- )
-}
-
export function UsersClient() {
const [users, setUsers] = useState([])
const [loading, setLoading] = useState(true)
diff --git a/lib/api/games-listing.ts b/lib/api/games-listing.ts
index 241f382..061962d 100644
--- a/lib/api/games-listing.ts
+++ b/lib/api/games-listing.ts
@@ -197,8 +197,8 @@ export const gamesListingRoutes = new Elysia({ prefix: "/games/listing" }).get(
// If sorting by benchmarks, re-sort the enriched data
if (sort === "benchmarks") {
const sortFn = query.order === "asc"
- ? (a: any, b: any) => a.benchmarkCount - b.benchmarkCount
- : (a: any, b: any) => b.benchmarkCount - a.benchmarkCount
+ ? (a: { benchmarkCount: number }, b: { benchmarkCount: number }) => a.benchmarkCount - b.benchmarkCount
+ : (a: { benchmarkCount: number }, b: { benchmarkCount: number }) => b.benchmarkCount - a.benchmarkCount
enrichedData.sort(sortFn)
}