From a6f012c05823d41f05a5a6f42c85499969045e7e Mon Sep 17 00:00:00 2001 From: Daniele Pancottini Date: Thu, 16 Mar 2023 19:00:09 +0100 Subject: [PATCH] Delete useless "tendenza" filter --- site/components/common/Navbar/Navbar.tsx | 2 +- .../common/UserNav/MenuSidebarView/MenuSidebarView.tsx | 2 +- site/components/search.tsx | 5 ++--- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/site/components/common/Navbar/Navbar.tsx b/site/components/common/Navbar/Navbar.tsx index 42fca8eaa..864ddfa8b 100644 --- a/site/components/common/Navbar/Navbar.tsx +++ b/site/components/common/Navbar/Navbar.tsx @@ -54,7 +54,7 @@ const Navbar: FC = ({ links }) => { - {process.env.COMMERCE_SEARCH_ENABLED && ( + {process.env.COMMERCE_SEARCH_ENABLED && pathname.includes("search") && (
diff --git a/site/components/common/UserNav/MenuSidebarView/MenuSidebarView.tsx b/site/components/common/UserNav/MenuSidebarView/MenuSidebarView.tsx index 00c001b3a..0463bec7e 100644 --- a/site/components/common/UserNav/MenuSidebarView/MenuSidebarView.tsx +++ b/site/components/common/UserNav/MenuSidebarView/MenuSidebarView.tsx @@ -19,7 +19,7 @@ export default function MenuSidebarView({
  • closeSidebar()}> - {locale == 'it' ? 'Prodotti' : 'Products'} + {locale == 'it' ? 'Vetrina' : 'Shop'}
  • {links.map((l: any) => ( diff --git a/site/components/search.tsx b/site/components/search.tsx index 2ec150919..ca2bc3c89 100644 --- a/site/components/search.tsx +++ b/site/components/search.tsx @@ -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"} - {locale === "it" ? "Rilevanza" : "Relevance"} + {locale === "it" ? "Filtri" : "Filters"}