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 />
</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">
<Searchbar id="mobile-search" />
</div>

View File

@ -19,7 +19,7 @@ export default function MenuSidebarView({
<ul>
<li className={s.item} onClick={() => closeSidebar()}>
<Link href="/search">
<a>{locale == 'it' ? 'Prodotti' : 'Products'}</a>
<a>{locale == 'it' ? 'Vetrina' : 'Shop'}</a>
</Link>
</li>
{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 SORT = {
'trending-desc': locale === "it" ? "Tendenza" :'Trending',
'latest-desc': locale === "it" ? "Ultimi Arrivi" : 'Latest arrivals',
'price-asc': locale === "it" ? "Prezzo Crescente" : 'Price: Low to high',
'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-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
className="-mr-1 ml-2 h-5 w-5"
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'
}
>
{locale === "it" ? "Rilevanza" : "Relevance"}
{locale === "it" ? "Filtri" : "Filters"}
</a>
</Link>
</li>