From 457aa45cde8995311e8297fe10ef335edad18d7d Mon Sep 17 00:00:00 2001 From: Finnian Jacobson-Schulte <140328381+finnian0826@users.noreply.github.com> Date: Thu, 19 Dec 2024 13:35:15 -0700 Subject: [PATCH] feat(hack): Add CTA for live links rewards --- src/dappsExplorer/DappFeaturedActions.tsx | 2 +- src/home/TabHome.tsx | 17 +++++++++++++++++ src/transactions/feed/TransactionFeedV2.tsx | 14 ++++++++++++++ 3 files changed, 32 insertions(+), 1 deletion(-) diff --git a/src/dappsExplorer/DappFeaturedActions.tsx b/src/dappsExplorer/DappFeaturedActions.tsx index 54ea472c15d..9b0ab2644f6 100644 --- a/src/dappsExplorer/DappFeaturedActions.tsx +++ b/src/dappsExplorer/DappFeaturedActions.tsx @@ -23,7 +23,7 @@ interface Props { style?: StyleProp } -function FeaturedAction({ title, description, Image, style, onPress }: Props) { +export function FeaturedAction({ title, description, Image, style, onPress }: Props) { return ( , }, + { + key: 'ReferralCTA', + component: ( + } + onPress={() => navigate(Screens.JumpstartEnterAmount)} + /> + ), + }, { key: 'TransactionFeed', component: , diff --git a/src/transactions/feed/TransactionFeedV2.tsx b/src/transactions/feed/TransactionFeedV2.tsx index e97affa562e..ed0eda5b5dc 100644 --- a/src/transactions/feed/TransactionFeedV2.tsx +++ b/src/transactions/feed/TransactionFeedV2.tsx @@ -10,15 +10,20 @@ import { Text, View, } from 'react-native' +import { Colors } from 'react-native/Libraries/NewAppScreen' import AppAnalytics from 'src/analytics/AppAnalytics' import { SwapEvents } from 'src/analytics/Events' import { NotificationVariant } from 'src/components/InLineNotification' import SectionHead from 'src/components/SectionHead' import Toast from 'src/components/Toast' +import { FeaturedAction } from 'src/dappsExplorer/DappFeaturedActions' import ActionsCarousel from 'src/home/ActionsCarousel' import GetStarted from 'src/home/GetStarted' import NotificationBox from 'src/home/NotificationBox' +import Trophy from 'src/icons/Trophy' import { getLocalCurrencyCode } from 'src/localCurrency/selectors' +import { navigate } from 'src/navigator/NavigationService' +import { Screens } from 'src/navigator/Screens' import { useDispatch, useSelector } from 'src/redux/hooks' import { store } from 'src/redux/store' import { getFeatureGate, getMultichainFeatures } from 'src/statsig' @@ -515,6 +520,15 @@ export default function TransactionFeedV2() { <> + } + onPress={() => navigate(Screens.JumpstartEnterAmount)} + style={{ marginLeft: 16, marginVertical: 16 }} + /> } ListEmptyComponent={!showUKCompliantVariant ? : }