This commit is contained in:
Manav Rathi
2024-09-07 17:02:37 +05:30
parent 3cb0c1b325
commit 980a1f4c5a
2 changed files with 7 additions and 8 deletions

View File

@@ -53,8 +53,8 @@ import {
getDefaultOptions,
} from "services/searchService";
import { Collection } from "types/collection";
import { SelectStyles } from "../../../../styles/search";
import { SearchInputWrapper } from "../styledComponents";
import { SelectStyles } from "../../../styles/search";
import { SearchInputWrapper } from "./styledComponents";
const { Option, ValueContainer, Menu } = components;
@@ -73,7 +73,7 @@ const createComponents = memoize((Option, ValueContainer, Menu, Input) => ({
Input,
}));
export default function SearchInput(props: SearchInputProps) {
export const SearchInput: React.FC<SearchInputProps> = (props) => {
const selectRef = useRef(null);
const [value, setValue] = useState<SearchOption>(null);
const appContext = useContext(AppContext);
@@ -233,7 +233,7 @@ export default function SearchInput(props: SearchInputProps) {
)}
</SearchInputWrapper>
);
}
};
const OptionWithInfo = (props) => (
<Option {...props}>

View File

@@ -1,9 +1,8 @@
import { Collection } from "types/collection";
import { SearchBarMobile } from "./searchBarMobile";
import { UpdateSearch } from "@/new/photos/services/search/types";
import { EnteFile } from "@/new/photos/types/file";
import SearchInput from "./searchInput";
import { Collection } from "types/collection";
import { SearchBarMobile } from "./searchBarMobile";
import { SearchInput } from "./SearchInput";
import { SearchBarWrapper } from "./styledComponents";
interface Props {