diff --git a/src/app/Components/Artist/useFollowArtist.ts b/src/app/Components/Artist/useFollowArtist.ts index ebea7ce20db..14cfcb8b37c 100644 --- a/src/app/Components/Artist/useFollowArtist.ts +++ b/src/app/Components/Artist/useFollowArtist.ts @@ -14,6 +14,7 @@ interface Options { contextModule?: ContextModule contextScreenOwnerType?: OwnerType ownerType?: Schema.OwnerEntityTypes | OwnerType + hideViewFollowsLink?: boolean } export const useFollowArtist = (options: Options) => { @@ -23,6 +24,7 @@ export const useFollowArtist = (options: Options) => { contextModule, contextScreenOwnerType = Schema.OwnerEntityTypes.Artist, ownerType, + hideViewFollowsLink, } = options const [isLoading, setIsLoading] = useState(false) @@ -119,15 +121,21 @@ export const useFollowArtist = (options: Options) => { setIsLoading(false) if (showToast && !data.isFollowed) { - toast.show("Artist Followed", "bottom", { - cta: "View Follows", - onPress: () => { - switchTab("profile") - navigate("favorites") - }, - backgroundColor: "green100", - description: "Keep track of the artists you love", - }) + if (hideViewFollowsLink) { + toast.show("Artist Followed", "bottom", { + backgroundColor: "green100", + }) + } else { + toast.show("Artist Followed", "bottom", { + cta: "View Follows", + onPress: () => { + switchTab("profile") + navigate("favorites") + }, + backgroundColor: "green100", + description: "Keep track of the artists you love", + }) + } } } diff --git a/src/app/Components/ArtworkGrids/ArtworkGridItem.tsx b/src/app/Components/ArtworkGrids/ArtworkGridItem.tsx index 475f0d56e1e..abb6708de1f 100644 --- a/src/app/Components/ArtworkGrids/ArtworkGridItem.tsx +++ b/src/app/Components/ArtworkGrids/ArtworkGridItem.tsx @@ -84,6 +84,7 @@ export interface ArtworkProps extends ArtworkActionTrackingProps { /** allows for artwork to be added to recent searches */ updateRecentSearchesOnTap?: boolean numColumns?: number + hideViewFollowsLink?: boolean } export const Artwork: React.FC = ({ @@ -117,6 +118,7 @@ export const Artwork: React.FC = ({ trackTap, updateRecentSearchesOnTap = false, numColumns = NUM_COLUMNS_MASONRY, + hideViewFollowsLink = false, }) => { const itemRef = useRef() const color = useColor() @@ -445,6 +447,7 @@ export const Artwork: React.FC = ({ artwork={artwork} showSaveIcon={!hideSaveIcon} showFollowIcon={!hideFollowIcon} + hideViewFollowsLink={hideViewFollowsLink} contextModule={contextModule} contextScreen={contextScreen} contextScreenOwnerId={contextScreenOwnerId} diff --git a/src/app/Components/ArtworkGrids/InfiniteScrollArtworksGrid.tsx b/src/app/Components/ArtworkGrids/InfiniteScrollArtworksGrid.tsx index 8cc5336fc41..06ee5293b72 100644 --- a/src/app/Components/ArtworkGrids/InfiniteScrollArtworksGrid.tsx +++ b/src/app/Components/ArtworkGrids/InfiniteScrollArtworksGrid.tsx @@ -121,6 +121,8 @@ export interface Props extends ArtworkActionTrackingProps { hideCuratorsPick?: boolean hideRegisterBySignal?: boolean + + hideViewFollowsLink?: boolean } interface PrivateProps { @@ -185,6 +187,7 @@ const InfiniteScrollArtworksGrid: React.FC = ({ hideIncreasedInterest, hidePartner = false, hideRegisterBySignal, + hideViewFollowsLink = false, hideSaveIcon = false, isLoading, isMyCollection = false, @@ -358,6 +361,7 @@ const InfiniteScrollArtworksGrid: React.FC = ({ hideIncreasedInterestSignal={hideIncreasedInterest} hideCuratorsPickSignal={hideCuratorsPick} hideRegisterBySignal={hideRegisterBySignal} + hideViewFollowsLink={hideViewFollowsLink} /> ) // Setting a marginBottom on the artwork component didn’t work, so using a spacer view instead. diff --git a/src/app/Scenes/Artwork/Components/ArtworkItemCTAs.tsx b/src/app/Scenes/Artwork/Components/ArtworkItemCTAs.tsx index 71f225474b6..21c66842fc1 100644 --- a/src/app/Scenes/Artwork/Components/ArtworkItemCTAs.tsx +++ b/src/app/Scenes/Artwork/Components/ArtworkItemCTAs.tsx @@ -29,6 +29,7 @@ interface ArtworkItemCTAsProps extends ArtworkActionTrackingProps { showSaveIcon?: boolean showFollowIcon?: boolean dark?: boolean + hideViewFollowsLink?: boolean } export const ArtworkItemCTAs: React.FC = ({ @@ -39,6 +40,10 @@ export const ArtworkItemCTAs: React.FC = ({ */ showFollowIcon = true, dark = false, + /** + * do not hide view vollows link by default, hide on the Onboarding flow + */ + hideViewFollowsLink = false, contextModule, contextScreen, contextScreenOwnerId, @@ -98,6 +103,7 @@ export const ArtworkItemCTAs: React.FC = ({ contextModule, contextScreenOwnerType, ownerType: Schema.OwnerEntityTypes.Artwork, + hideViewFollowsLink, }) if (!enableNewSaveAndFollowOnArtworkCard) { diff --git a/src/app/Scenes/Onboarding/OnboardingQuiz/OnboardingMarketingCollection.tsx b/src/app/Scenes/Onboarding/OnboardingQuiz/OnboardingMarketingCollection.tsx index f634e03f2bd..4d73eb06bf4 100644 --- a/src/app/Scenes/Onboarding/OnboardingQuiz/OnboardingMarketingCollection.tsx +++ b/src/app/Scenes/Onboarding/OnboardingQuiz/OnboardingMarketingCollection.tsx @@ -56,6 +56,7 @@ const OnboardingMarketingCollection: React.FC