Delete useless "tendenza" filter

This commit is contained in:
Daniele Pancottini 2023-03-16 19:00:09 +01:00
parent 6c2278184a
commit a6f012c058
3 changed files with 4 additions and 5 deletions

View File

@ -54,7 +54,7 @@ const Navbar: FC<NavbarProps> = ({ links }) => {
<UserNav /> <UserNav />
</div> </div>
</div> </div>
{process.env.COMMERCE_SEARCH_ENABLED && ( {process.env.COMMERCE_SEARCH_ENABLED && pathname.includes("search") && (
<div className="flex pb-4 lg:px-6 lg:hidden"> <div className="flex pb-4 lg:px-6 lg:hidden">
<Searchbar id="mobile-search" /> <Searchbar id="mobile-search" />
</div> </div>

View File

@ -19,7 +19,7 @@ export default function MenuSidebarView({
<ul> <ul>
<li className={s.item} onClick={() => closeSidebar()}> <li className={s.item} onClick={() => closeSidebar()}>
<Link href="/search"> <Link href="/search">
<a>{locale == 'it' ? 'Prodotti' : 'Products'}</a> <a>{locale == 'it' ? 'Vetrina' : 'Shop'}</a>
</Link> </Link>
</li> </li>
{links.map((l: any) => ( {links.map((l: any) => (

View File

@ -52,7 +52,6 @@ export default function Search({ categories, brands }: SearchPropsType) {
const categoriesItems = filtersData.categories[locale as keyof typeof filtersData.categories] const categoriesItems = filtersData.categories[locale as keyof typeof filtersData.categories]
const SORT = { const SORT = {
'trending-desc': locale === "it" ? "Tendenza" :'Trending',
'latest-desc': locale === "it" ? "Ultimi Arrivi" : 'Latest arrivals', 'latest-desc': locale === "it" ? "Ultimi Arrivi" : 'Latest arrivals',
'price-asc': locale === "it" ? "Prezzo Crescente" : 'Price: Low to high', 'price-asc': locale === "it" ? "Prezzo Crescente" : 'Price: Low to high',
'price-desc': locale === "it" ? "Prezzo Decrescente" :'Price: High to low', 'price-desc': locale === "it" ? "Prezzo Decrescente" :'Price: High to low',
@ -233,7 +232,7 @@ export default function Search({ categories, brands }: SearchPropsType) {
aria-haspopup="true" aria-haspopup="true"
aria-expanded="true" aria-expanded="true"
> >
{sort ? SORT[sort as keyof typeof SORT] : locale === "it" ? "Rilevanza" : "Relevance"} {sort ? SORT[sort as keyof typeof SORT] : locale === "it" ? "Filtri" : "Filters"}
<svg <svg
className="-mr-1 ml-2 h-5 w-5" className="-mr-1 ml-2 h-5 w-5"
xmlns="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg"
@ -276,7 +275,7 @@ export default function Search({ categories, brands }: SearchPropsType) {
'block lg:inline-block px-4 py-2 lg:p-0 lg:my-2 lg:mx-4' 'block lg:inline-block px-4 py-2 lg:p-0 lg:my-2 lg:mx-4'
} }
> >
{locale === "it" ? "Rilevanza" : "Relevance"} {locale === "it" ? "Filtri" : "Filters"}
</a> </a>
</Link> </Link>
</li> </li>