diff options
| author | Wolfboy248 <121288977+Wolfboy248@users.noreply.github.com> | 2024-12-10 07:16:37 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-12-10 09:16:37 +0300 |
| commit | 9c3e5686f36bc4ba76d510f27adc89f378a3a658 (patch) | |
| tree | c55033ed5e4f153e027767be160fbcf94364f755 /frontend/src/pages/Maps.tsx | |
| parent | docs/lphub: seperate contributors into a new file (#244) (diff) | |
| download | lphub-9c3e5686f36bc4ba76d510f27adc89f378a3a658.tar.gz lphub-9c3e5686f36bc4ba76d510f27adc89f378a3a658.tar.bz2 lphub-9c3e5686f36bc4ba76d510f27adc89f378a3a658.zip | |
fix/frontend: map pagination fix (#246)
Diffstat (limited to 'frontend/src/pages/Maps.tsx')
| -rw-r--r-- | frontend/src/pages/Maps.tsx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/frontend/src/pages/Maps.tsx b/frontend/src/pages/Maps.tsx index f1daa36..f73e8d2 100644 --- a/frontend/src/pages/Maps.tsx +++ b/frontend/src/pages/Maps.tsx | |||
| @@ -35,7 +35,7 @@ const Maps: React.FC<MapProps> = ({ token, isModerator }) => { | |||
| 35 | }; | 35 | }; |
| 36 | 36 | ||
| 37 | const _fetch_map_leaderboards = async () => { | 37 | const _fetch_map_leaderboards = async () => { |
| 38 | const mapLeaderboards = await API.get_map_leaderboard(mapID); | 38 | const mapLeaderboards = await API.get_map_leaderboard(mapID, "1"); |
| 39 | setMapLeaderboardData(mapLeaderboards); | 39 | setMapLeaderboardData(mapLeaderboards); |
| 40 | }; | 40 | }; |
| 41 | 41 | ||
| @@ -94,7 +94,7 @@ const Maps: React.FC<MapProps> = ({ token, isModerator }) => { | |||
| 94 | </section> | 94 | </section> |
| 95 | 95 | ||
| 96 | {navState === 0 && <Summary selectedRun={selectedRun} setSelectedRun={setSelectedRun} data={mapSummaryData} />} | 96 | {navState === 0 && <Summary selectedRun={selectedRun} setSelectedRun={setSelectedRun} data={mapSummaryData} />} |
| 97 | {navState === 1 && <Leaderboards data={mapLeaderboardData} />} | 97 | {navState === 1 && <Leaderboards mapID={mapID} />} |
| 98 | {navState === 2 && <Discussions data={mapDiscussionsData} token={token} isModerator={isModerator} mapID={mapID} onRefresh={() => _fetch_map_discussions()} />} | 98 | {navState === 2 && <Discussions data={mapDiscussionsData} token={token} isModerator={isModerator} mapID={mapID} onRefresh={() => _fetch_map_discussions()} />} |
| 99 | </main> | 99 | </main> |
| 100 | </> | 100 | </> |