feat(frontend): add question search
This commit is contained in:
@@ -94,6 +94,7 @@ export default async function QuestionsPage({
|
||||
patterns={patternsResponse.items}
|
||||
currentCategory={params.category}
|
||||
currentPattern={params.pattern}
|
||||
currentSearch={params.search}
|
||||
/>
|
||||
</div>
|
||||
|
||||
@@ -118,7 +119,7 @@ export default async function QuestionsPage({
|
||||
params.difficulty ? `&difficulty=${params.difficulty}` : ""
|
||||
}${params.category ? `&category=${params.category}` : ""}${
|
||||
params.pattern ? `&pattern=${params.pattern}` : ""
|
||||
}`}
|
||||
}${params.search ? `&search=${encodeURIComponent(params.search)}` : ""}`}
|
||||
className={`px-3 py-1 rounded ${
|
||||
page === questionsResponse.page
|
||||
? "bg-[var(--primary)] text-[var(--primary-foreground)]"
|
||||
|
||||
Reference in New Issue
Block a user