feat : add profile page
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user