Skip to content

Commit 3789897

Browse files
authored
Merge pull request #1331 from cupro29/fix_submissions_filter
Submissions タブで問題名の検索をできるようにする
2 parents 65e7d6e + ad1352d commit 3789897

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

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

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,12 @@ import {
1414
} from "./ListPaginationPanel";
1515
import { NewTabLink } from "./NewTabLink";
1616

17+
const problemTitle = (
18+
problemName: string | undefined,
19+
{ problemIndex }: { problemIndex?: string }
20+
): string =>
21+
problemIndex ? `${problemIndex}. ${problemName || ""}` : problemName || "";
22+
1723
interface Props {
1824
submissions: Submission[];
1925
userRatingInfo?: RatingInfo;
@@ -113,7 +119,7 @@ export const SubmissionListTable: React.FC<Props> = (props) => {
113119
Date
114120
</TableHeaderColumn>
115121
<TableHeaderColumn
116-
filterFormatted
122+
filterValue={problemTitle}
117123
dataSort
118124
dataField="name"
119125
dataFormat={(

0 commit comments

Comments
 (0)