7?
Some checks failed
Deploy Website / deploy (push) Failing after 1m36s
Deploy Backend / deploy (push) Successful in 3m11s

This commit is contained in:
Lee
2024-10-17 15:47:20 +01:00
parent e37f0d5548
commit d08f81b25d
6 changed files with 11 additions and 13 deletions

View File

@ -8,7 +8,7 @@ import { LeaderboardResponse } from "@ssr/common/response/leaderboard-response";
import { useQuery } from "@tanstack/react-query";
import { useState } from "react";
import { fetchLeaderboard } from "@ssr/common/utils/leaderboard.util";
import PlayerScoresResponse from "../../../../common/src/response/player-scores-response.ts";
import LeaderboardScoresResponse from "@ssr/common/response/leaderboard-scores-response";
const REFRESH_INTERVAL = 1000 * 60 * 5;
@ -21,7 +21,7 @@ type LeaderboardDataProps = {
/**
* The initial score data.
*/
initialScores: PlayerScoresResponse<ScoreSaberScore, ScoreSaberLeaderboard>;
initialScores?: LeaderboardScoresResponse<ScoreSaberScore, ScoreSaberLeaderboard>;
};
export function LeaderboardData({ initialLeaderboard, initialScores }: LeaderboardDataProps) {