Skip to content

Commit 134db94

Browse files
committed
RankingのPull Downのペジネーション選択部分のバグ修正
1 parent f210399 commit 134db94

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

atcoder-problems-frontend/src/components/Ranking.tsx

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ import { BootstrapTable, TableHeaderColumn } from "react-bootstrap-table";
44
import { RankingEntry } from "../interfaces/RankingEntry";
55
import { useLocalStorage } from "../utils/LocalStorage";
66
import { UserNameLabel } from "./UserNameLabel";
7+
import {
8+
ListPaginationPanel,
9+
ListPaginationPanelProps,
10+
} from "./ListPaginationPanel";
711

812
interface Props {
913
title: React.ReactNode;
@@ -88,6 +92,11 @@ export const Ranking: React.FC<Props> = (props) => {
8892
value: props.ranking.length,
8993
},
9094
],
95+
paginationPanel: function DataFormat(
96+
paginationPanelProps: ListPaginationPanelProps
97+
): React.ReactElement {
98+
return <ListPaginationPanel {...paginationPanelProps} />;
99+
},
91100
}}
92101
>
93102
<TableHeaderColumn dataField="rank">#</TableHeaderColumn>
@@ -213,6 +222,11 @@ export const RemoteRanking: React.FC<RemoteProps> = (props) => {
213222
value: 200,
214223
},
215224
],
225+
paginationPanel: function DataFormat(
226+
paginationPanelProps: ListPaginationPanelProps
227+
): React.ReactElement {
228+
return <ListPaginationPanel {...paginationPanelProps} />;
229+
},
216230
}}
217231
>
218232
<TableHeaderColumn dataField="rank">#</TableHeaderColumn>

0 commit comments

Comments
 (0)