diff --git a/src/app/Scenes/SearchModal/SeachModal.tests.tsx b/src/app/Components/GlobalSearchInput.tests.tsx similarity index 55% rename from src/app/Scenes/SearchModal/SeachModal.tests.tsx rename to src/app/Components/GlobalSearchInput.tests.tsx index 8cbf426b363..1c9580898b4 100644 --- a/src/app/Scenes/SearchModal/SeachModal.tests.tsx +++ b/src/app/Components/GlobalSearchInput.tests.tsx @@ -1,9 +1,9 @@ -import { SearchModalScreen } from "app/Scenes/SearchModal/SeachModal" +import { GlobalSearchInput } from "app/Components/GlobalSearchInput" import { renderWithWrappers } from "app/utils/tests/renderWithWrappers" -describe("SeachModal", () => { +describe("GlobalSearchInput", () => { it("renders the search label properly", () => { - renderWithWrappers() + renderWithWrappers() expect(/Search artists, artworks, etc/).toBeTruthy() }) diff --git a/src/app/Components/GlobalSearchInput.tsx b/src/app/Components/GlobalSearchInput.tsx index 3c178029d5c..652b8ee15b7 100644 --- a/src/app/Components/GlobalSearchInput.tsx +++ b/src/app/Components/GlobalSearchInput.tsx @@ -1,10 +1,11 @@ import { Flex, RoundSearchInput, Touchable } from "@artsy/palette-mobile" -import { GlobalSearchInputModal } from "app/Components/GlobalSearchInputModal" +import { GlobalSearchInputOverlay } from "app/Components/GlobalSearchInputOverlay" import { SEARCH_INPUT_PLACEHOLDER } from "app/Scenes/Search/Search" import { Fragment, useState } from "react" export const GlobalSearchInput: React.FC<{}> = () => { const [isVisible, setIsVisible] = useState(false) + return ( = () => { /> - setIsVisible(false)} /> + setIsVisible(false)} /> ) } diff --git a/src/app/Components/GlobalSearchInputModal.tsx b/src/app/Components/GlobalSearchInputOverlay.tsx similarity index 93% rename from src/app/Components/GlobalSearchInputModal.tsx rename to src/app/Components/GlobalSearchInputOverlay.tsx index c2f03bcd99f..da4f8c1f348 100644 --- a/src/app/Components/GlobalSearchInputModal.tsx +++ b/src/app/Components/GlobalSearchInputOverlay.tsx @@ -5,7 +5,7 @@ import { SEARCH_INPUT_PLACEHOLDER } from "app/Scenes/Search/Search" import { SafeAreaView } from "react-native-safe-area-context" import { FullWindowOverlay } from "react-native-screens" -export const GlobalSearchInputModal: React.FC<{ visible: boolean; hideModal: () => void }> = ({ +export const GlobalSearchInputOverlay: React.FC<{ visible: boolean; hideModal: () => void }> = ({ visible, hideModal, }) => { diff --git a/src/app/Scenes/SearchModal/SeachModal.tsx b/src/app/Scenes/SearchModal/SeachModal.tsx deleted file mode 100644 index 3f31c5c9403..00000000000 --- a/src/app/Scenes/SearchModal/SeachModal.tsx +++ /dev/null @@ -1,27 +0,0 @@ -import { Flex, RoundSearchInput, Screen, Spacer } from "@artsy/palette-mobile" -import { SEARCH_INPUT_PLACEHOLDER } from "app/Scenes/Search/Search" -import { goBack } from "app/system/navigation/navigate" - -export const SearchModalScreen = () => { - return ( - - - { - goBack() - }} - /> - - - - - - ) -}