π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Inline
Manav Rathi60dd2dd800a5
diff --git a/web/apps/photos/src/components/Search/SearchResultInfo.tsx b/web/apps/photos/src/components/Search/SearchResultInfo.tsxindex f087bf1456..e69de29bb2 100644--- a/web/apps/photos/src/components/Search/SearchResultInfo.tsx+++ b/web/apps/photos/src/components/Search/SearchResultInfo.tsx@@ -1,25 +0,0 @@-import { SearchResultSummary } from "@/new/photos/services/search/types";-import { Typography } from "@mui/material";-import { CollectionInfo } from "components/Collections/CollectionInfo";-import { CollectionInfoBarWrapper } from "components/Collections/styledComponents";-import { t } from "i18next";--interface Iprops {- searchResultSummary: SearchResultSummary;-}-export default function SearchResultInfo({ searchResultSummary }: Iprops) {- if (!searchResultSummary) {- return <></>;- }-- const { optionName, fileCount } = searchResultSummary;-- return (- <CollectionInfoBarWrapper>- <Typography color="text.muted" variant="large">- {t("search_results")}- </Typography>- <CollectionInfo name={optionName} fileCount={fileCount} />- </CollectionInfoBarWrapper>- );-}diff --git a/web/apps/photos/src/pages/gallery/index.tsx b/web/apps/photos/src/pages/gallery/index.tsxindex 8ab0eee90f..1c3b51671a 100644--- a/web/apps/photos/src/pages/gallery/index.tsx+++ b/web/apps/photos/src/pages/gallery/index.tsx@@ -40,12 +40,14 @@ import type { User } from "@ente/shared/user/types";import { Typography, styled } from "@mui/material";import AuthenticateUserModal from "components/AuthenticateUserModal";import Collections from "components/Collections";+import { CollectionInfo } from "components/Collections/CollectionInfo";import CollectionNamer, {CollectionNamerAttributes,} from "components/Collections/CollectionNamer";import CollectionSelector, {CollectionSelectorAttributes,} from "components/Collections/CollectionSelector";+import { CollectionInfoBarWrapper } from "components/Collections/styledComponents";import ExportModal from "components/ExportModal";import {FilesDownloadProgress,@@ -59,7 +61,6 @@ import GalleryEmptyState from "components/GalleryEmptyState";import { LoadingOverlay } from "components/LoadingOverlay";import PhotoFrame from "components/PhotoFrame";import { ITEM_TYPE, TimeStampListItem } from "components/PhotoList";-import SearchResultInfo from "components/Search/SearchResultInfo";import Sidebar from "components/Sidebar";import type { UploadTypeSelectorIntent } from "components/Upload/UploadTypeSelector";import Uploader from "components/Upload/Uploader";@@ -480,7 +481,7 @@ export default function Gallery() {setPhotoListHeader({height: 104,item: (- <SearchResultInfo+ <SearchResultSummaryHeadersearchResultSummary={searchResultSummary}/>),@@ -1252,3 +1253,26 @@ const mergeMaps = <K, V>(map1: Map<K, V>, map2: Map<K, V>) => {});return mergedMap;};++interface SearchResultSummaryHeaderProps {+ searchResultSummary: SearchResultSummary;+}++const SearchResultSummaryHeader: React.FC<SearchResultSummaryHeaderProps> = ({+ searchResultSummary,+}) => {+ if (!searchResultSummary) {+ return <></>;+ }++ const { optionName, fileCount } = searchResultSummary;++ return (+ <CollectionInfoBarWrapper>+ <Typography color="text.muted" variant="large">+ {t("search_results")}+ </Typography>+ <CollectionInfo name={optionName} fileCount={fileCount} />+ </CollectionInfoBarWrapper>+ );+};