From 546e40c1ff7e4685c9c7dc5dc0d4e3bb323d1c12 Mon Sep 17 00:00:00 2001 From: Manav Rathi Date: Mon, 9 Sep 2024 14:56:48 +0530 Subject: [PATCH] Trim exports --- web/apps/photos/src/components/SearchBar.tsx | 10 +++++----- .../photos/src/components/pages/gallery/Navbar.tsx | 3 ++- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/web/apps/photos/src/components/SearchBar.tsx b/web/apps/photos/src/components/SearchBar.tsx index 218375cac8..74b6fe8ad2 100644 --- a/web/apps/photos/src/components/SearchBar.tsx +++ b/web/apps/photos/src/components/SearchBar.tsx @@ -69,11 +69,11 @@ interface SearchBarProps { setIsInSearchMode: (v: boolean) => void; } -export default function SearchBar({ +export const SearchBar: React.FC = ({ setIsInSearchMode, isInSearchMode, ...props -}: SearchBarProps) { +}) => { const showSearchInput = () => setIsInSearchMode(true); return ( @@ -89,7 +89,7 @@ export default function SearchBar({ /> ); -} +}; const SearchBarWrapper = styled(FlexWrapper)` padding: 0 24px; @@ -113,7 +113,7 @@ const createComponents = memoize((Option, ValueContainer, Menu, Input) => ({ Input, })); -export const SearchInput: React.FC = (props) => { +const SearchInput: React.FC = (props) => { const selectRef = useRef(null); const [value, setValue] = useState(null); const appContext = useContext(AppContext); @@ -368,7 +368,7 @@ const getIconByType = (type: SuggestionType) => { } }; -export const MenuWithPeople = (props) => { +const MenuWithPeople = (props) => { // log.info("props.selectProps.options: ", selectRef); const peopleSuggestions = props.selectProps.options.filter( (o) => o.type === SuggestionType.PERSON, diff --git a/web/apps/photos/src/components/pages/gallery/Navbar.tsx b/web/apps/photos/src/components/pages/gallery/Navbar.tsx index 729a536351..0148a831e7 100644 --- a/web/apps/photos/src/components/pages/gallery/Navbar.tsx +++ b/web/apps/photos/src/components/pages/gallery/Navbar.tsx @@ -5,7 +5,7 @@ import { FlexWrapper, HorizontalFlex } from "@ente/shared/components/Container"; import ArrowBack from "@mui/icons-material/ArrowBack"; import MenuIcon from "@mui/icons-material/Menu"; import { IconButton, Typography } from "@mui/material"; -import SearchBar from "components/SearchBar"; +import { SearchBar } from "components/SearchBar"; import UploadButton from "components/Upload/UploadButton"; import { t } from "i18next"; import { Collection } from "types/collection"; @@ -22,6 +22,7 @@ interface Iprops { updateSearch: UpdateSearch; exitHiddenSection: () => void; } + export function GalleryNavbar({ openSidebar, openUploader,