π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Inline
Manav Rathi60f728277414
diff --git a/web/apps/photos/src/components/Search/SearchBar/index.tsx b/web/apps/photos/src/components/Search/SearchBar/index.tsxindex 53a54c1b3e..fbf079c376 100644--- a/web/apps/photos/src/components/Search/SearchBar/index.tsx+++ b/web/apps/photos/src/components/Search/SearchBar/index.tsx@@ -1,9 +1,11 @@import { UpdateSearch } from "@/new/photos/services/search/types";import { EnteFile } from "@/new/photos/types/file";+import { FluidContainer } from "@ente/shared/components/Container";+import SearchIcon from "@mui/icons-material/Search";+import { IconButton } from "@mui/material";import { Collection } from "types/collection";-import { SearchBarMobile } from "./searchBarMobile";import { SearchInput } from "./SearchInput";-import { SearchBarWrapper } from "./styledComponents";+import { SearchBarWrapper, SearchMobileBox } from "./styledComponents";interface Props {updateSearch: UpdateSearch;@@ -34,3 +36,18 @@ export default function SearchBar({</SearchBarWrapper>);}++function SearchBarMobile({ show, showSearchInput }) {+ if (!show) {+ return <></>;+ }+ return (+ <SearchMobileBox>+ <FluidContainer justifyContent="flex-end" ml={1.5}>+ <IconButton onClick={showSearchInput}>+ <SearchIcon />+ </IconButton>+ </FluidContainer>+ </SearchMobileBox>+ );+}diff --git a/web/apps/photos/src/components/Search/SearchBar/searchBarMobile.tsx b/web/apps/photos/src/components/Search/SearchBar/searchBarMobile.tsxdeleted file mode 100644index 466a5ef79e..0000000000--- a/web/apps/photos/src/components/Search/SearchBar/searchBarMobile.tsx+++ /dev/null@@ -1,19 +0,0 @@-import { FluidContainer } from "@ente/shared/components/Container";-import SearchIcon from "@mui/icons-material/Search";-import { IconButton } from "@mui/material";-import { SearchMobileBox } from "./styledComponents";--export function SearchBarMobile({ show, showSearchInput }) {- if (!show) {- return <></>;- }- return (- <SearchMobileBox>- <FluidContainer justifyContent="flex-end" ml={1.5}>- <IconButton onClick={showSearchInput}>- <SearchIcon />- </IconButton>- </FluidContainer>- </SearchMobileBox>- );-}