Skip to content

Commit a6cc5b6

Browse files
authored
Merge pull request #1112 from siro53/change/1098-PAST-page-in-table
change: change PAST page in Table from ContestTable to AtCoderRegularTable
2 parents c64238b + 4e5012d commit a6cc5b6

File tree

1 file changed

+11
-3
lines changed
  • atcoder-problems-frontend/src/pages/TablePage

1 file changed

+11
-3
lines changed

atcoder-problems-frontend/src/pages/TablePage/index.tsx

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -101,9 +101,15 @@ export const TablePage: React.FC<OuterProps> = (props) => {
101101
}}
102102
/>
103103
<TableTabButtons active={activeTab} setActive={setActiveTab} />
104-
{["ABC", "ARC", "AGC", "ABC-Like", "ARC-Like", "AGC-Like"].includes(
105-
activeTab
106-
) ? (
104+
{[
105+
"ABC",
106+
"ARC",
107+
"AGC",
108+
"ABC-Like",
109+
"ARC-Like",
110+
"AGC-Like",
111+
"PAST",
112+
].includes(activeTab) ? (
107113
<AtCoderRegularTable
108114
showDifficulty={showDifficulty}
109115
hideCompletedContest={hideCompletedContest}
@@ -116,6 +122,8 @@ export const TablePage: React.FC<OuterProps> = (props) => {
116122
? "AtCoder Regular Contest"
117123
: activeTab === "AGC"
118124
? "AtCoder Grand Contest"
125+
: activeTab === "PAST"
126+
? "PAST"
119127
: `${activeTab} Contest`
120128
}
121129
contestToProblems={contestToProblems}

0 commit comments

Comments
 (0)