feat : add profile page

This commit is contained in:
2026-08-06 22:46:47 +07:00 Unverified
parent e5a6ad3e04
commit c1c015ef78
26 changed files with 1169 additions and 310 deletions
+9 -1
View File
@@ -31,6 +31,12 @@ type LeaderboardRealtimeRefreshProps =
leaderboard: "vc";
channelId?: string;
debounceMs?: number;
}
| {
topic: "leaderboards";
leaderboard: "profile";
channelId?: never;
debounceMs?: number;
};
type RealtimeRefreshProps =
@@ -48,7 +54,9 @@ export function RealtimeRefresh(props: RealtimeRefreshProps) {
useEffect(() => {
const filter = topic === "leaderboards"
? leaderboard === "xp"
? leaderboard === "profile"
? { kind: "profile" as const }
: leaderboard === "xp"
? { kind: "xp" as const }
: { kind: "vc" as const, channelId }
: topic === "uploads"