Skip to content

Commit d6cf22e

Browse files
authored
Merge pull request #1090 from MatsuTaku/contest-tabbing
Contest Show page navigates by Tabs
2 parents 93950a9 + 66c4859 commit d6cf22e

File tree

5 files changed

+272
-200
lines changed

5 files changed

+272
-200
lines changed

atcoder-problems-frontend/src/pages/Internal/VirtualContest/ShowContest/ContestTable.tsx

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ import {
2222
calculatePerformances,
2323
makeBotRunners,
2424
} from "../../../../utils/RatingSystem";
25-
import { VirtualContestItem } from "../../types";
25+
import { VirtualContestItem, VirtualContestProblem } from "../../types";
2626
import { ContestTableRow } from "./ContestTableRow";
2727
import { FirstAcceptanceRow } from "./FirstAcceptanceRow";
2828
import {
@@ -33,12 +33,6 @@ import {
3333
} from "./ResultCalcUtil";
3434
import { compareProblem, getResultsByUserMap } from "./util";
3535

36-
interface VirtualContestProblem {
37-
item: VirtualContestItem;
38-
title?: string;
39-
contestId?: string;
40-
}
41-
4236
interface Props {
4337
readonly contestId: string;
4438
readonly contestTitle: string;

atcoder-problems-frontend/src/pages/Internal/VirtualContest/ShowContest/LockoutContestTable/index.tsx

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { ProblemLink } from "../../../../../components/ProblemLink";
55
import { UserNameLabel } from "../../../../../components/UserNameLabel";
66
import { ProblemId, UserId } from "../../../../../interfaces/Status";
77
import { isAccepted } from "../../../../../utils";
8-
import { VirtualContestItem } from "../../../types";
8+
import { VirtualContestProblem } from "../../../types";
99

1010
const CARD_COLORS = ["success", "danger", "warning", "info", "primary"];
1111

@@ -23,11 +23,7 @@ interface Props {
2323
readonly start: number;
2424
readonly end: number;
2525
readonly enableAutoRefresh: boolean;
26-
readonly problems: {
27-
item: VirtualContestItem;
28-
title?: string;
29-
contestId?: string;
30-
}[];
26+
readonly problems: VirtualContestProblem[];
3127
}
3228

3329
export const LockoutContestTable: React.FC<Props> = (props) => {

atcoder-problems-frontend/src/pages/Internal/VirtualContest/ShowContest/TrainingContestTable/index.tsx

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { Badge, Table } from "reactstrap";
33
import { useVirtualContestSubmissions } from "../../../../../api/APIClient";
44
import { UserNameLabel } from "../../../../../components/UserNameLabel";
55
import { UserId } from "../../../../../interfaces/Status";
6-
import { VirtualContestItem } from "../../../types";
6+
import { VirtualContestProblem } from "../../../types";
77
import {
88
calcUserTotalResult,
99
compareTotalResult,
@@ -15,11 +15,7 @@ import { SmallScoreCell } from "./SmallScoreCell";
1515
interface Props {
1616
readonly showRating: boolean;
1717
readonly showProblems: boolean;
18-
readonly problems: {
19-
item: VirtualContestItem;
20-
title?: string;
21-
contestId?: string;
22-
}[];
18+
readonly problems: VirtualContestProblem[];
2319
readonly users: string[];
2420
readonly start: number;
2521
readonly end: number;

0 commit comments

Comments
 (0)