diff --git a/static/components/customer-market/customer-market.html b/static/components/customer-market/customer-market.html
index 6baf996..d862ac8 100644
--- a/static/components/customer-market/customer-market.html
+++ b/static/components/customer-market/customer-market.html
@@ -1,26 +1,4 @@
-
-
-
-
-
-
-
Search Globally
-
Search for products on Nostr
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/static/components/customer-market/customer-market.js b/static/components/customer-market/customer-market.js
index 33f8597..9540597 100644
--- a/static/components/customer-market/customer-market.js
+++ b/static/components/customer-market/customer-market.js
@@ -4,17 +4,7 @@ async function customerMarket(path) {
name: 'customer-market',
template,
- props: [
- 'filtered-products',
- 'change-page',
- 'search-nostr',
- 'relays',
- 'update-products',
- 'update-stalls',
-
- 'search-text',
- 'filter-categories'
- ],
+ props: ['filtered-products', 'search-text', 'filter-categories'],
data: function () {
return {
search: null,
@@ -54,33 +44,7 @@ async function customerMarket(path) {
changePageM(page, opts) {
this.$emit('change-page', page, opts)
},
- async searchProducts() {
- this.$q.loading.show()
- let searchTags = this.search.split(' ')
- const pool = new NostrTools.SimplePool()
- let relays = Array.from(this.relays)
- let merchants = new Set()
- let productEvents = await pool.list(relays, [
- {
- kinds: [30018],
- '#t': searchTags,
- search: this.search, // NIP50, not very well supported
- limit: 100
- }
- ])
-
- productEvents.map(e => merchants.add(e.pubkey))
- let stallEvents = await pool.list(relays, [
- {
- kinds: [30017],
- authors: Array.from(merchants)
- }
- ])
- pool.close(relays)
- await this.$emit('update-data', [...stallEvents, ...productEvents])
- this.$q.loading.hide()
- },
onLoad(_, done) {
setTimeout(() => {
if (this.startIndex >= this.filteredProducts.length) {
diff --git a/static/js/market.js b/static/js/market.js
index dd70a5e..2f8bb29 100644
--- a/static/js/market.js
+++ b/static/js/market.js
@@ -79,7 +79,7 @@ const market = async () => {
show: false
},
- searchNostr: false,
+
filterCategories: [],
groupByStall: false,
diff --git a/templates/nostrmarket/market.html b/templates/nostrmarket/market.html
index e70254d..a351f2d 100644
--- a/templates/nostrmarket/market.html
+++ b/templates/nostrmarket/market.html
@@ -188,9 +188,9 @@
-
+