Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

fix(photos):hide-people-tab-in-web-search

Aswin Asok05457a65c703
diff --git a/web/apps/photos/src/components/SearchBar.tsx b/web/apps/photos/src/components/SearchBar.tsx
index 393ea564be..509d2c0322 100644
--- a/web/apps/photos/src/components/SearchBar.tsx
+++ b/web/apps/photos/src/components/SearchBar.tsx
@@ -376,6 +376,8 @@ interface SearchCategoryProps {
};
}
+const searchTabs = searchCategories.filter((category) => category !== "people");
+
function SearchMenu(props: MenuProps<SearchOption, false>) {
const {
searchCategory: { category, setCategory },
@@ -422,7 +424,7 @@ function SearchMenu(props: MenuProps<SearchOption, false>) {
},
}}
>
- {searchCategories.map((category) => (
+ {searchTabs.map((category) => (
<Tab
key={category}
value={category}