Skip to content

Commit

Permalink
Merge pull request #54445 from dominictb/fix/54022
Browse files Browse the repository at this point in the history
navigate to Referral modal when click get $250
  • Loading branch information
arosiclair authored Dec 23, 2024
2 parents 54ea46d + 3f0b2f8 commit a6ea6a1
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/components/EmptySelectionListContent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,10 @@ import {View} from 'react-native';
import type {TupleToUnion} from 'type-fest';
import useLocalize from '@hooks/useLocalize';
import useThemeStyles from '@hooks/useThemeStyles';
import Navigation from '@libs/Navigation/Navigation';
import variables from '@styles/variables';
import CONST from '@src/CONST';
import ROUTES from '@src/ROUTES';
import BlockingView from './BlockingViews/BlockingView';
import * as Illustrations from './Icon/Illustrations';
import ScrollView from './ScrollView';
Expand Down Expand Up @@ -34,7 +36,13 @@ function EmptySelectionListContent({contentType}: EmptySelectionListContentProps
const EmptySubtitle = (
<Text style={[styles.textAlignCenter]}>
{translate(`emptyList.${contentType}.subtitleText1`)}
<TextLink href={CONST.REFERRAL_PROGRAM.LEARN_MORE_LINK}>{translate(`emptyList.${contentType}.subtitleText2`)}</TextLink>
<TextLink
onPress={() => {
Navigation.navigate(ROUTES.REFERRAL_DETAILS_MODAL.getRoute(CONST.REFERRAL_PROGRAM.CONTENT_TYPES.SUBMIT_EXPENSE, Navigation.getActiveRouteWithoutParams()));
}}
>
{translate(`emptyList.${contentType}.subtitleText2`)}
</TextLink>
{translate(`emptyList.${contentType}.subtitleText3`)}
</Text>
);
Expand Down

0 comments on commit a6ea6a1

Please sign in to comment.