Trim exports

This commit is contained in:
Manav Rathi
2024-09-09 14:56:48 +05:30
parent 8306b5d534
commit 546e40c1ff
2 changed files with 7 additions and 6 deletions

View File

@@ -69,11 +69,11 @@ interface SearchBarProps {
setIsInSearchMode: (v: boolean) => void;
}
export default function SearchBar({
export const SearchBar: React.FC<SearchBarProps> = ({
setIsInSearchMode,
isInSearchMode,
...props
}: SearchBarProps) {
}) => {
const showSearchInput = () => setIsInSearchMode(true);
return (
@@ -89,7 +89,7 @@ export default function SearchBar({
/>
</SearchBarWrapper>
);
}
};
const SearchBarWrapper = styled(FlexWrapper)`
padding: 0 24px;
@@ -113,7 +113,7 @@ const createComponents = memoize((Option, ValueContainer, Menu, Input) => ({
Input,
}));
export const SearchInput: React.FC<SearchInputProps> = (props) => {
const SearchInput: React.FC<SearchInputProps> = (props) => {
const selectRef = useRef(null);
const [value, setValue] = useState<SearchOption>(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,

View File

@@ -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,