Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Props

Manav Rathif11c455b6b38
diff --git a/web/apps/photos/src/components/SearchBar.tsx b/web/apps/photos/src/components/SearchBar.tsx
index 87579a9ba5..6fb01c9f6f 100644
--- a/web/apps/photos/src/components/SearchBar.tsx
+++ b/web/apps/photos/src/components/SearchBar.tsx
@@ -49,6 +49,7 @@ import {
components as SelectComponents,
type InputActionMeta,
type OptionProps,
+ type StylesConfig,
type ValueContainerProps,
} from "react-select";
import AsyncSelect from "react-select/async";
@@ -58,7 +59,7 @@ import {
} from "services/searchService";
import { Collection } from "types/collection";
-const { Option, ValueContainer, Menu, Input } = SelectComponents;
+const { Option, Menu, Input } = SelectComponents;
interface SearchBarProps {
isInSearchMode: boolean;
@@ -293,7 +294,7 @@ const SearchInputWrapper = styled(Box)`
margin: auto;
`;
-const SelectStyles = {
+const SelectStyles: StylesConfig<SearchOption, false> = {
container: (style) => ({
...style,
flex: 1,
@@ -406,7 +407,7 @@ const LabelWithInfo = ({ data }: { data: SearchOption }) => {
const ValueContainerWithIcon: React.FC<ValueContainerProps<SearchOption>> = (
props,
) => (
- <ValueContainer {...props}>
+ <SelectComponents.ValueContainer {...props}>
<FlexWrapper>
<Box
style={{ display: "inline-flex" }}
@@ -417,7 +418,7 @@ const ValueContainerWithIcon: React.FC<ValueContainerProps<SearchOption>> = (
</Box>
{props.children}
</FlexWrapper>
- </ValueContainer>
+ </SelectComponents.ValueContainer>
);
const getIconByType = (type: SuggestionType) => {