@@ -81,10 +81,9 @@ import {
8181 getAvailableGiftCards ,
8282 getCategoriesWithIntegrations ,
8383} from '../shop/shop.selectors' ;
84- import { SettingsScreens } from '../../navigation/tabs/settings/SettingsStack' ;
8584import { MerchantScreens } from '../../navigation/tabs/shop/merchant/MerchantStack' ;
8685import { ShopTabs } from '../../navigation/tabs/shop/ShopHome' ;
87- import { ShopScreens } from '../../navigation/tabs/ shop/ShopStack' ;
86+ import { ShopScreens } from '../../navigation/shop/ShopStack' ;
8887import QuickActions , { ShortcutItem } from 'react-native-quick-actions' ;
8988import { ShortcutList } from '../../constants/shortcuts' ;
9089import { goToBuyCrypto } from '../buy-crypto/buy-crypto.effects' ;
@@ -969,8 +968,8 @@ export const incomingShopLink =
969968 } ,
970969 } ) ;
971970 } else {
972- navigationRef . navigate ( 'Shop' , {
973- screen : ShopScreens . HOME ,
971+ navigationRef . navigate ( RootStacks . TABS , {
972+ screen : TabsScreens . SHOP ,
974973 params : {
975974 screen : ShopTabs . GIFT_CARDS ,
976975 } ,
@@ -1000,8 +999,8 @@ export const incomingShopLink =
1000999 } ,
10011000 } ) ;
10021001 } else {
1003- navigationRef . navigate ( 'Shop' , {
1004- screen : ShopScreens . HOME ,
1002+ navigationRef . navigate ( RootStacks . TABS , {
1003+ screen : TabsScreens . SHOP ,
10051004 params : {
10061005 screen : ShopTabs . SHOP_ONLINE ,
10071006 } ,
@@ -1061,10 +1060,7 @@ export const incomingLink =
10611060 navigationRef . navigate ( RootStacks . TABS , {
10621061 screen : TabsScreens . SETTINGS ,
10631062 params : {
1064- screen : SettingsScreens . Root ,
1065- params : {
1066- redirectTo : redirectTo as any ,
1067- } ,
1063+ redirectTo : redirectTo as any ,
10681064 } ,
10691065 } ) ;
10701066 } ;
@@ -1077,6 +1073,15 @@ export const incomingLink =
10771073 } ) ;
10781074 } ;
10791075 }
1076+ } else if ( pathSegments [ 0 ] === 'wallet-card' ) {
1077+ const cardPath = pathSegments [ 1 ] ;
1078+
1079+ if ( cardPath === 'pairing' ) {
1080+ navigationRef . navigate ( RootStacks . CARD , {
1081+ screen : CardScreens . PAIRING ,
1082+ params,
1083+ } ) ;
1084+ }
10801085 } else if ( pathSegments [ 0 ] === 'card' ) {
10811086 const cardPath = pathSegments [ 1 ] ;
10821087 const createCardHandler = ( cb : ( cards : Card [ ] ) => void ) => {
@@ -1089,9 +1094,6 @@ export const incomingLink =
10891094 } else {
10901095 navigationRef . navigate ( RootStacks . TABS , {
10911096 screen : TabsScreens . CARD ,
1092- params : {
1093- screen : CardScreens . HOME ,
1094- } ,
10951097 } ) ;
10961098 }
10971099 } ;
@@ -1108,27 +1110,21 @@ export const incomingLink =
11081110 } ) ;
11091111 } else if ( cardPath === 'offers' ) {
11101112 handler = createCardHandler ( cards => {
1111- navigationRef . navigate ( RootStacks . TABS , {
1112- screen : TabsScreens . CARD ,
1113+ navigationRef . navigate ( RootStacks . CARD , {
1114+ screen : CardScreens . SETTINGS ,
11131115 params : {
1114- screen : CardScreens . SETTINGS ,
1115- params : {
1116- id : cards [ 0 ] . id ,
1117- } ,
1116+ id : cards [ 0 ] . id ,
11181117 } ,
11191118 } ) ;
11201119
11211120 dispatch ( CardEffects . startOpenDosh ( ) ) ;
11221121 } ) ;
11231122 } else if ( cardPath === 'referral' ) {
11241123 handler = createCardHandler ( cards => {
1125- navigationRef . navigate ( RootStacks . TABS , {
1126- screen : TabsScreens . CARD ,
1124+ navigationRef . navigate ( RootStacks . CARD , {
1125+ screen : CardScreens . REFERRAL ,
11271126 params : {
1128- screen : CardScreens . REFERRAL ,
1129- params : {
1130- card : cards [ 0 ] ,
1131- } ,
1127+ card : cards [ 0 ] ,
11321128 } ,
11331129 } ) ;
11341130 } ) ;
0 commit comments