π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
fix(photos):simplify-search-empty-state
Aswin Asokb9902402e17e
diff --git a/web/apps/photos/src/components/SearchBar.tsx b/web/apps/photos/src/components/SearchBar.tsxindex 8c701775e2..4cae50d219 100644--- a/web/apps/photos/src/components/SearchBar.tsx+++ b/web/apps/photos/src/components/SearchBar.tsx@@ -19,7 +19,6 @@ import CameraIcon from "@mui/icons-material/PhotoCameraOutlined";import SettingsIcon from "@mui/icons-material/Settings";import {Box,- Button,Dialog,IconButton,Stack,@@ -373,12 +372,7 @@ const SearchInput: React.FC<loadingMessage={() => t("loading")}noOptionsMessage={({ inputValue }) => {if (inputValue) {- return (- <SearchNoMatches- category={category}- onSeeAll={() => setCategory("all")}- />- );+ return <SearchNoMatches />;}if (shouldShowEmptyState(inputValue)) {return (@@ -519,13 +513,7 @@ function SearchGroupHeading(props: GroupHeadingProps<SearchOption, false>) {);}-function SearchNoMatches({- category,- onSeeAll,-}: {- category: SearchCategory;- onSeeAll: () => void;-}) {+function SearchNoMatches() {return (<Stacksx={{@@ -545,21 +533,8 @@ function SearchNoMatches({{t("search_no_matches")}</Typography><Typography variant="small" sx={{ color: "text.muted" }}>- {t(- category === "all"- ? "search_try_another"- : "search_empty_category",- )}+ {t("search_try_another")}</Typography>- {category !== "all" && (- <Button- color="secondary"- onMouseDown={(event) => event.stopPropagation()}- onClick={onSeeAll}- >- {t("search_see_all")}- </Button>- )}</Stack>);}diff --git a/web/packages/base/locales/en-US/translation.json b/web/packages/base/locales/en-US/translation.jsonindex 315accdfaf..1545350d8a 100644--- a/web/packages/base/locales/en-US/translation.json+++ b/web/packages/base/locales/en-US/translation.json@@ -480,8 +480,6 @@"search_places": "Places","search_no_matches": "No matches found!","search_try_another": "Try another name, date or description.",- "search_empty_category": "No matches in this category.",- "search_see_all": "See all results","no_results": "No results found","no_photos_found_here": "No photos found here","zoom_out_to_see_photos": "Zoom out to see photos",