diff options
| author | Wolfboy248 <121288977+Wolfboy248@users.noreply.github.com> | 2024-09-06 13:05:39 +0200 |
|---|---|---|
| committer | Wolfboy248 <121288977+Wolfboy248@users.noreply.github.com> | 2024-09-06 13:05:39 +0200 |
| commit | edff87fdf77b32fd03ee26892226068a53fbfaa6 (patch) | |
| tree | de6ed2b1acf0c39421983bebe9737e8a615a950d /frontend/src/types | |
| parent | refactor: maplist page (diff) | |
| download | lphub-edff87fdf77b32fd03ee26892226068a53fbfaa6.tar.gz lphub-edff87fdf77b32fd03ee26892226068a53fbfaa6.tar.bz2 lphub-edff87fdf77b32fd03ee26892226068a53fbfaa6.zip | |
refactor: rankings page
Diffstat (limited to 'frontend/src/types')
| -rw-r--r-- | frontend/src/types/Ranking.tsx | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/frontend/src/types/Ranking.tsx b/frontend/src/types/Ranking.tsx new file mode 100644 index 0000000..ad4d8ae --- /dev/null +++ b/frontend/src/types/Ranking.tsx | |||
| @@ -0,0 +1,13 @@ | |||
| 1 | import { UserShort } from "./Profile"; | ||
| 2 | |||
| 3 | export interface RankingType { | ||
| 4 | placement: number; | ||
| 5 | user: UserShort; | ||
| 6 | total_score: number; | ||
| 7 | } | ||
| 8 | |||
| 9 | export interface Ranking { | ||
| 10 | rankings_overall: RankingType[]; | ||
| 11 | rankings_singleplayer: RankingType[]; | ||
| 12 | rankings_multiplayer: RankingType[]; | ||
| 13 | } \ No newline at end of file | ||