diff --git a/src/app/Scenes/SavedSearchAlert/screens/ConfirmationScreen.tsx b/src/app/Scenes/SavedSearchAlert/screens/ConfirmationScreen.tsx index 4c011f2b478..f150efdec76 100644 --- a/src/app/Scenes/SavedSearchAlert/screens/ConfirmationScreen.tsx +++ b/src/app/Scenes/SavedSearchAlert/screens/ConfirmationScreen.tsx @@ -1,6 +1,5 @@ import { Box, Button, Flex, Spacer, Text, useTheme } from "@artsy/palette-mobile" import { RouteProp, useRoute } from "@react-navigation/native" -import { StackScreenProps } from "@react-navigation/stack" import { ConfirmationScreenMatchingArtworksQuery, FilterArtworksInput, @@ -22,10 +21,8 @@ import { graphql, useLazyLoadQuery } from "react-relay" const NUMBER_OF_ARTWORKS_TO_SHOW = 10 -type Props = StackScreenProps - -export const ConfirmationScreen: React.FC = (props) => { - const { route } = props +export const ConfirmationScreen: React.FC = () => { + const route = useRoute>() const { closeModal } = route.params const { bottom: bottomInset } = useSafeAreaInsets() const pills = useSavedSearchPills()