Skip to content

Commit b5951bd

Browse files
committed
feat(leaderboard): show current page in go-to-page button
1 parent b188b4b commit b5951bd

2 files changed

Lines changed: 4 additions & 12 deletions

File tree

frontend/src/ts/components/pages/leaderboard/Navigation.tsx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ import { showSimpleModal } from "../../../states/simple-modal";
66
import { cn } from "../../../utils/cn";
77
import { Button } from "../../common/Button";
88
import { LoadingCircle } from "../../common/LoadingCircle";
9-
import { PageIndicator } from "./PageIndicator";
109

1110
export function Navigation(props: {
1211
lastPage: number;
@@ -29,7 +28,6 @@ export function Navigation(props: {
2928
<Show when={props.isLoading}>
3029
<LoadingCircle color="sub" class="text-2xl" />
3130
</Show>
32-
<PageIndicator currentPage={props.currentPage} />
3331
<Button
3432
onClick={() => props.onPageChange(0)}
3533
fa={{ icon: "fa-crown", fixedWidth: true }}
@@ -98,7 +96,10 @@ export function Navigation(props: {
9896
fa={{ icon: "fa-hashtag", fixedWidth: true }}
9997
class={buttonClass}
10098
disabled={props.lastPage <= 1}
101-
/>
99+
>
100+
{" "}
101+
{props.currentPage + 1}
102+
</Button>
102103
<Button
103104
onClick={() => props.onPageChange((old) => old + 1)}
104105
fa={{ icon: "fa-chevron-right", fixedWidth: true }}

frontend/src/ts/components/pages/leaderboard/PageIndicator.tsx

Lines changed: 0 additions & 9 deletions
This file was deleted.

0 commit comments

Comments
 (0)