From 25edec460b19c8ce0c57a542934368d3e1e79ab2 Mon Sep 17 00:00:00 2001
From: Sean Morley
Date: Sun, 19 Jan 2025 23:09:28 -0500
Subject: [PATCH] feat: enhance search page with reactive data updates and
simplify component usage
---
frontend/src/routes/search/+page.svelte | 60 ++++++++++++-------------
1 file changed, 28 insertions(+), 32 deletions(-)
diff --git a/frontend/src/routes/search/+page.svelte b/frontend/src/routes/search/+page.svelte
index f45e6be..d498aa1 100644
--- a/frontend/src/routes/search/+page.svelte
+++ b/frontend/src/routes/search/+page.svelte
@@ -1,32 +1,39 @@
Search{query ? `: ${query}` : ''}
@@ -44,7 +51,7 @@
Collections
{#each collections as collection}
-
+
{/each}
{/if}
@@ -62,10 +69,7 @@
Regions
{#each regions as region}
- visitedRegion.region === region.id)}
- />
+ vr.region === region.id)} />
{/each}
{/if}
@@ -74,10 +78,7 @@
Cities
{#each cities as city}
- visitedCity.city === city.id)}
- />
+ vc.city === city.id)} />
{/each}
{/if}
@@ -96,8 +97,3 @@
{$t('adventures.no_results')}
{/if}
-
-
- Search{query ? `: ${query}` : ''}
-
-