diff --git a/src/components/dialogs/BlueskyPlus/index.tsx b/src/components/dialogs/BlueskyPlus/index.tsx index 27c83d55dc..f8defdcc37 100644 --- a/src/components/dialogs/BlueskyPlus/index.tsx +++ b/src/components/dialogs/BlueskyPlus/index.tsx @@ -3,6 +3,7 @@ import {View} from 'react-native' import {PURCHASES_ERROR_CODE} from 'react-native-purchases' import {msg, Trans} from '@lingui/macro' import {useLingui} from '@lingui/react' +import {useNavigationState} from '@react-navigation/native' import { usePurchaseOffering, @@ -42,6 +43,9 @@ function DialogInner({control}: {control: Dialog.DialogControlProps}) { const {gtMobile} = useBreakpoints() const {currentAccount} = useSession() const copy = useCoreOfferingCopy() + const routes = useNavigationState(state => state.routes) + const currentRoute = routes.at(routes.length - 1) + const isOnSubscriptionsPage = currentRoute?.name === 'Subscriptions' const [offeringId, setOfferingId] = React.useState( SubscriptionOfferingId.CoreAnnual, @@ -230,17 +234,19 @@ function DialogInner({control}: {control: Dialog.DialogControlProps}) { - - - Learn more - - + {!isOnSubscriptionsPage && ( + + + Learn more + + + )}