diff --git a/web/apps/photos/src/components/Search/SearchBar/index.tsx b/web/apps/photos/src/components/Search/SearchBar/index.tsx index 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({ ); } + +function SearchBarMobile({ show, showSearchInput }) { + if (!show) { + return <>; + } + return ( + + + + + + + + ); +} diff --git a/web/apps/photos/src/components/Search/SearchBar/searchBarMobile.tsx b/web/apps/photos/src/components/Search/SearchBar/searchBarMobile.tsx deleted file mode 100644 index 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 ( - - - - - - - - ); -}