diff --git a/web/apps/photos/src/components/Search/SearchBar/searchInput/index.tsx b/web/apps/photos/src/components/Search/SearchBar/SearchInput.tsx similarity index 98% rename from web/apps/photos/src/components/Search/SearchBar/searchInput/index.tsx rename to web/apps/photos/src/components/Search/SearchBar/SearchInput.tsx index a8be46a46d..3fd3834a4d 100644 --- a/web/apps/photos/src/components/Search/SearchBar/searchInput/index.tsx +++ b/web/apps/photos/src/components/Search/SearchBar/SearchInput.tsx @@ -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 = (props) => { const selectRef = useRef(null); const [value, setValue] = useState(null); const appContext = useContext(AppContext); @@ -233,7 +233,7 @@ export default function SearchInput(props: SearchInputProps) { )} ); -} +}; const OptionWithInfo = (props) => (