diff --git a/src/components/molecules/SearchCategoriesFilter.module.css b/src/components/molecules/SearchCategoriesFilter.module.css
deleted file mode 100644
index ba2b8dd23..000000000
--- a/src/components/molecules/SearchCategoriesFilter.module.css
+++ /dev/null
@@ -1,12 +0,0 @@
-.optionItem {
- margin-bottom: calc(var(--spacer) / 4);
- padding-left: 1.5rem;
-}
-
-.optionItem label {
- display: block;
-}
-
-.optionItem input {
- margin-left: -1.5rem;
-}
diff --git a/src/components/molecules/SearchCategoriesFilter.tsx b/src/components/molecules/SearchCategoriesFilter.tsx
deleted file mode 100644
index 9d7eb98b3..000000000
--- a/src/components/molecules/SearchCategoriesFilter.tsx
+++ /dev/null
@@ -1,32 +0,0 @@
-import React from 'react'
-import useCategoriesQueryParams from '../../hooks/useCategoriesQueryParams'
-import SearchFilterSection from '../atoms/SearchFilterSection'
-import Checkbox from '../atoms/Checkbox'
-import { CATEGORIES } from '../../models/PublishForm'
-
-import styles from './SearchCategoriesFilter.module.css'
-
-const SearchCategoriesFilter = () => {
- const { selectedCategories, toggleCategory } = useCategoriesQueryParams(
- CATEGORIES
- )
-
- return (
-
-
- {CATEGORIES.map(category => (
- -
- toggleCategory(category)}
- label={category}
- />
-
- ))}
-
-
- )
-}
-
-export default SearchCategoriesFilter
diff --git a/src/components/templates/Search.tsx b/src/components/templates/Search.tsx
index bc097e97f..1972bdbac 100644
--- a/src/components/templates/Search.tsx
+++ b/src/components/templates/Search.tsx
@@ -4,35 +4,27 @@ import Layout from '../../Layout'
import PageHeader from '../molecules/PageHeader'
import SearchBar from '../molecules/SearchBar'
import AssetList from '../organisms/AssetList'
-import SearchCategoriesFilter from '../molecules/SearchCategoriesFilter'
import { SearchPriceFilter } from '../molecules/SearchPriceFilter'
import styles from './Search.module.css'
export declare type SearchPageProps = {
text: string | string[]
- categories: string[] | undefined
+
tag: string | string[]
queryResult: QueryResult
}
-const SearchPage = ({
- text,
- categories,
- tag,
- queryResult
-}: SearchPageProps) => {
- const categoriesText = categories?.join(', ')
+const SearchPage = ({ text, tag, queryResult }: SearchPageProps) => {
return (
diff --git a/src/pages/search.tsx b/src/pages/search.tsx
index 100b7639f..d8505526f 100644
--- a/src/pages/search.tsx
+++ b/src/pages/search.tsx
@@ -6,27 +6,14 @@ import SearchPage, { SearchPageProps } from '../components/templates/Search'
import { config } from '../config/ocean'
import { JSONparse, priceQueryParamToWei } from '../utils'
-const Search: NextPage = ({
- text,
- categories,
- tag,
- queryResult
-}) => {
- return (
-
- )
+const Search: NextPage = ({ text, tag, queryResult }) => {
+ return
}
export function getSearchQuery(
page?: string | string[],
offset?: string | string[],
text?: string | string[],
- categoriesParsed?: string[],
tag?: string | string[],
priceQuery?: [string | undefined, string | undefined]
) {
@@ -35,7 +22,6 @@ export function getSearchQuery(
offset: Number(offset) || 20,
query: {
text,
- categories: categoriesParsed,
tags: tag ? [tag] : undefined,
price: priceQuery
},
@@ -51,19 +37,8 @@ export function getSearchQuery(
}
Search.getInitialProps = async context => {
- const {
- text,
- categories,
- tag,
- page,
- offset,
- minPrice,
- maxPrice
- } = context.query
- const categoriesParsed = JSONparse(
- categories as string,
- 'Error parsing context.query.categories and setting categoriesParsed'
- )
+ const { text, tag, page, offset, minPrice, maxPrice } = context.query
+
const minPriceParsed = priceQueryParamToWei(
minPrice as string,
'Error parsing context.query.minPrice'
@@ -83,12 +58,11 @@ Search.getInitialProps = async context => {
const aquarius = new Aquarius(config.aquariusUri as string, Logger)
const queryResult = await aquarius.queryMetadata(
- getSearchQuery(page, offset, text, categoriesParsed, tag, priceQuery)
+ getSearchQuery(page, offset, text, tag, priceQuery)
)
return {
text: text,
- categories: categoriesParsed,
tag: tag,
queryResult
}