Skip to content

Commit d6ddaf9

Browse files
feat: Adding product (AppWrite from IL) (#58)
* feat: Adding product (AppWrite from IL) Alternative: Supabase * feat: Adding search by country Now User can search by country from search input
1 parent 761a1ff commit d6ddaf9

2 files changed

Lines changed: 14 additions & 1 deletion

File tree

data/products/tech.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,18 @@
113113
}
114114
]
115115
},
116+
{
117+
"name": "AppWrite",
118+
"category_id": "tech",
119+
"country_code": "IL",
120+
"alternatives": [
121+
{
122+
"name": "Supabase",
123+
"country_code": "OSS",
124+
"link": "https://supabase.com/"
125+
}
126+
]
127+
},
116128
{
117129
"name": "Google Workspace",
118130
"category_id": "tech",

src/components/ProductList.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,8 @@ const ProductList = () => {
5959
results = results.filter(
6060
(product) =>
6161
product.name.toLowerCase().includes(searchTermLower) ||
62-
product.alternatives?.some((alt) => alt.name.toLowerCase().includes(searchTermLower)),
62+
product.alternatives?.some((alt) => alt.name.toLowerCase().includes(searchTermLower)) ||
63+
product.country?.name.en.toLowerCase().includes(searchTermLower),
6364
);
6465
}
6566

0 commit comments

Comments
 (0)