Skip to content

Commit

Permalink
fix: city guide missing back button
Browse files Browse the repository at this point in the history
  • Loading branch information
MounirDhahri committed Oct 29, 2024
1 parent 4ae9f09 commit ccd12f4
Showing 1 changed file with 23 additions and 1 deletion.
24 changes: 23 additions & 1 deletion src/app/AppRegistry.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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 (
<BackButton
style={{
top: 0,
left: 0,
}}
onPress={() => {
goBack()
}}
/>
)
},
}
: undefined,
}),
MakeOfferModal: reactModule(MakeOfferModalQueryRenderer, {
hasOwnModalCloseButton: true,
}),
Expand Down

0 comments on commit ccd12f4

Please sign in to comment.