diff options
| author | Pinapelz <yukais@pinapelz.com> | 2025-10-12 17:00:29 -0700 |
|---|---|---|
| committer | Pinapelz <yukais@pinapelz.com> | 2025-10-12 17:00:29 -0700 |
| commit | c151489caa1d30b5fadf31f97a27ae9a1bb69f4d (patch) | |
| tree | af9d3206e41a88956e71a6953c1b30b9543f91e2 /frontend/src/pages/AllScores.tsx | |
| parent | 3c52b549554a7c7698090e1952a8c0ba837cfdd0 (diff) | |
update score viewing pages to render nostalgia and reflecbeat components
Diffstat (limited to 'frontend/src/pages/AllScores.tsx')
| -rw-r--r-- | frontend/src/pages/AllScores.tsx | 66 |
1 files changed, 66 insertions, 0 deletions
diff --git a/frontend/src/pages/AllScores.tsx b/frontend/src/pages/AllScores.tsx index e89cc64..1f7becf 100644 --- a/frontend/src/pages/AllScores.tsx +++ b/frontend/src/pages/AllScores.tsx @@ -5,6 +5,11 @@ import { NavBar } from "../components/NavBar"; import SessionExpiredPopup from "../components/SessionExpiredPopup"; import ScoreDisplay from "../components/displays/GenericScoreDisplay"; import DancerushScoreDisplay from "../components/displays/DancerushScoreDisplay"; +import DancearoundScoreDisplay from "../components/displays/DancearoundScoreDisplay"; +import DivaScoreDisplay from "../components/displays/DivaScoreDisplay"; +import MusicDiverScoreDisplay from "../components/displays/MusicDiverScoreDisplay"; +import NostalgiaScoreDisplay from "../components/displays/NostalgiaScoreDisplay"; +import ReflecBeatScoreDisplay from "../components/displays/ReflecBeatScoreDisplay"; type SortField = string; type SortDirection = "asc" | "desc"; @@ -296,6 +301,67 @@ const AllScores = () => { showUsername={true} /> ); + break; + case "dancearound": + return ( + <DancearoundScoreDisplay + scores={scores} + viewMode={viewMode} + sortField={sortField} + sortDirection={sortDirection} + onSort={handleSort} + showUsername={true} + /> + ); + break; + case "diva": + return ( + <DivaScoreDisplay + scores={scores} + viewMode={viewMode} + sortField={sortField} + sortDirection={sortDirection} + onSort={handleSort} + showUsername={true} + /> + ); + break; + case "musicdiver": + return ( + <MusicDiverScoreDisplay + scores={scores} + viewMode={viewMode} + sortField={sortField} + sortDirection={sortDirection} + onSort={handleSort} + showUsername={true} + /> + ); + break; + case "nostalgia": + return ( + <NostalgiaScoreDisplay + scores={scores} + viewMode={viewMode} + sortField={sortField} + sortDirection={sortDirection} + onSort={handleSort} + showUsername={true} + /> + ); + break; + case "reflecbeat": + return ( + <ReflecBeatScoreDisplay + scores={scores} + viewMode={viewMode} + sortField={sortField} + sortDirection={sortDirection} + onSort={handleSort} + showUsername={true} + /> + ); + break; default: return ( <ScoreDisplay |
