feat: full symptoms filtering system — backend API, megamenu pills, sidebar server-side filter, PDP tags
This commit is contained in:
1 parent
4676f3a592
commit
6dafe86344
7 files changed
+124
-27
No files matched your search
@@ -22,7 +22,11 @@ export default async function Shop({ searchParams }: { searchParams: Promise<{ [
|
||||
const category = typeof resolvedParams.category === 'string' ? resolvedParams.category : "all";
|
||||
const search = typeof resolvedParams.search === 'string' ? resolvedParams.search : "";
|
||||
const petType = typeof resolvedParams.petType === 'string' ? resolvedParams.petType : "all";
|
||||
const symptoms = typeof resolvedParams.symptoms === 'string' ? resolvedParams.symptoms : "";
|
||||
|
||||
// Support both ?symptoms= (multi, from sidebar URL state) and ?symptom= (single, from megamenu/PDP links)
|
||||
const symptomsParam = typeof resolvedParams.symptoms === 'string' ? resolvedParams.symptoms : "";
|
||||
const symptomSingle = typeof resolvedParams.symptom === 'string' ? resolvedParams.symptom : "";
|
||||
const symptoms = symptomsParam || (symptomSingle ? symptomSingle : "");
|
||||
|
||||
return (
|
||||
<ArchivePage
|
||||
|
||||
Reference in new issue
Block a user