Skip to content

Commit ebb478a

Browse files
committed
feat: allow filtering with question name
1 parent abb1bfa commit ebb478a

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

app/(admin)/(activity-management)/submissions/_components/data-table.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ export function SubmissionsDataTable({
3030
or: [
3131
{ hasUserWith: [{ nameContains: query }] },
3232
{ hasUserWith: [{ emailContains: query }] },
33+
{ hasQuestionWith: [{ titleContains: query }] },
3334
],
3435
status: status === "all" ? undefined : status,
3536
},

app/(admin)/(activity-management)/submissions/_components/filterable-data-table.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export default function FilterableDataTable() {
1818
<div className="flex flex-col">
1919
<div className="mb-4 flex items-center gap-4">
2020
<Input
21-
placeholder="搜尋使用者名稱或 e-mail"
21+
placeholder="搜尋使用者名稱、e-mail 或題目名稱"
2222
value={query}
2323
onChange={(e) => setQuery(e.target.value)}
2424
/>

0 commit comments

Comments
 (0)