From ccd12f4a361622d960e40933fa2d062c20870ec1 Mon Sep 17 00:00:00 2001 From: Mounir Dhahri Date: Tue, 29 Oct 2024 12:27:19 +0100 Subject: [PATCH] fix: city guide missing back button --- src/app/AppRegistry.tsx | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/src/app/AppRegistry.tsx b/src/app/AppRegistry.tsx index 511159a96b9..647b8ef0614 100644 --- a/src/app/AppRegistry.tsx +++ b/src/app/AppRegistry.tsx @@ -40,6 +40,8 @@ import { SearchScreen, SearchScreenQuery } from "app/Scenes/Search/Search" import { SubmitArtworkForm } from "app/Scenes/SellWithArtsy/ArtworkForm/SubmitArtworkForm" import { SubmitArtworkFormEditContainer } from "app/Scenes/SellWithArtsy/ArtworkForm/SubmitArtworkFormEdit" import { SimilarToRecentlyViewedScreen } from "app/Scenes/SimilarToRecentlyViewed/SimilarToRecentlyViewed" +import { BackButton } from "app/system/navigation/BackButton" +import { goBack } from "app/system/navigation/navigate" import { ArtsyKeyboardAvoidingViewContext } from "app/utils/ArtsyKeyboardAvoidingView" import { SafeAreaInsets, useScreenDimensions } from "app/utils/hooks" import { useSelectedTab } from "app/utils/hooks/useSelectedTab" @@ -541,7 +543,27 @@ export const modules = defineModules({ hasOwnModalCloseButton: true, modalPresentationStyle: "fullScreen", }), - LocalDiscovery: reactModule(CityGuideView, { fullBleed: true }), + LocalDiscovery: reactModule(CityGuideView, { + fullBleed: true, + screenOptions: unsafe_getFeatureFlag("AREnableNewNavigation") + ? { + headerTransparent: true, + headerLeft: () => { + return ( + { + goBack() + }} + /> + ) + }, + } + : undefined, + }), MakeOfferModal: reactModule(MakeOfferModalQueryRenderer, { hasOwnModalCloseButton: true, }),