From 60f728277414bebcb0d29fb87a18182865f0f11c Mon Sep 17 00:00:00 2001 From: Manav Rathi Date: Sat, 7 Sep 2024 17:04:47 +0530 Subject: [PATCH] Inline --- .../src/components/Search/SearchBar/index.tsx | 21 +++++++++++++++++-- .../Search/SearchBar/searchBarMobile.tsx | 19 ----------------- 2 files changed, 19 insertions(+), 21 deletions(-) delete mode 100644 web/apps/photos/src/components/Search/SearchBar/searchBarMobile.tsx 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 ( - - - - - - - - ); -}