aboutsummaryrefslogtreecommitdiff
path: root/frontend/src/types
diff options
context:
space:
mode:
authorWolfboy248 <121288977+Wolfboy248@users.noreply.github.com>2024-09-06 13:05:39 +0200
committerWolfboy248 <121288977+Wolfboy248@users.noreply.github.com>2024-09-06 13:05:39 +0200
commitedff87fdf77b32fd03ee26892226068a53fbfaa6 (patch)
treede6ed2b1acf0c39421983bebe9737e8a615a950d /frontend/src/types
parentrefactor: maplist page (diff)
downloadlphub-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.tsx13
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 @@
1import { UserShort } from "./Profile";
2
3export interface RankingType {
4 placement: number;
5 user: UserShort;
6 total_score: number;
7}
8
9export interface Ranking {
10 rankings_overall: RankingType[];
11 rankings_singleplayer: RankingType[];
12 rankings_multiplayer: RankingType[];
13} \ No newline at end of file