π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
R
Manav Rathid05438e034d8
diff --git a/web/apps/photos/src/components/SearchBar.tsx b/web/apps/photos/src/components/SearchBar.tsxindex 5296f6ab91..5f9a7b7177 100644--- a/web/apps/photos/src/components/SearchBar.tsx+++ b/web/apps/photos/src/components/SearchBar.tsx@@ -62,9 +62,9 @@ const { Option, ValueContainer, Menu } = components;interface SearchBarProps {isInSearchMode: boolean;setIsInSearchMode: (v: boolean) => void;+ updateSearch: UpdateSearch;collections: Collection[];files: EnteFile[];- updateSearch: UpdateSearch;}export type UpdateSearch = (@@ -77,9 +77,10 @@ export const SearchBar: React.FC<SearchBarProps> = ({isInSearchMode,...props}) => {- const showSearchInput = () => setIsInSearchMode(true);const isMobileWidth = useIsMobileWidth();+ const showSearchInput = () => setIsInSearchMode(true);+return (<Box sx={{ flex: 1, px: ["4px", "24px"] }}>{isMobileWidth && !isInSearchMode ? (@@ -97,8 +98,8 @@ export const SearchBar: React.FC<SearchBarProps> = ({interface SearchInputProps {isOpen: boolean;- updateSearch: UpdateSearch;setIsOpen: (value: boolean) => void;+ updateSearch: UpdateSearch;files: EnteFile[];collections: Collection[];}diff --git a/web/apps/photos/src/pages/gallery.tsx b/web/apps/photos/src/pages/gallery.tsxindex 40cbe786c5..7a2a096b15 100644--- a/web/apps/photos/src/pages/gallery.tsx+++ b/web/apps/photos/src/pages/gallery.tsx@@ -1088,9 +1088,9 @@ export default function Gallery() {openUploader={openUploader}isInSearchMode={isInSearchMode}setIsInSearchMode={setIsInSearchMode}+ updateSearch={updateSearch}collections={collections}files={files}- updateSearch={updateSearch}/>)}</NavbarBase>@@ -1268,9 +1268,9 @@ interface NormalNavbarContentsProps {openUploader: () => void;isInSearchMode: boolean;setIsInSearchMode: (v: boolean) => void;+ updateSearch: UpdateSearch;collections: Collection[];files: EnteFile[];- updateSearch: UpdateSearch;}const NormalNavbarContents: React.FC<NormalNavbarContentsProps> = ({@@ -1278,18 +1278,18 @@ const NormalNavbarContents: React.FC<NormalNavbarContentsProps> = ({openUploader,isInSearchMode,setIsInSearchMode,+ updateSearch,collections,files,- updateSearch,}) => (<>{!isInSearchMode && <SidebarButton onClick={openSidebar} />}<SearchBarisInSearchMode={isInSearchMode}setIsInSearchMode={setIsInSearchMode}+ updateSearch={updateSearch}collections={collections}files={files}- updateSearch={updateSearch}/>{!isInSearchMode && <UploadButton onClick={openUploader} />}</>