@@ -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' ;
@@ -945,8 +944,8 @@ export const incomingShopLink =
945944 } ,
946945 } ) ;
947946 } else {
948- navigationRef . navigate ( 'Shop' , {
949- screen : ShopScreens . HOME ,
947+ navigationRef . navigate ( RootStacks . TABS , {
948+ screen : TabsScreens . SHOP ,
950949 params : {
951950 screen : ShopTabs . GIFT_CARDS ,
952951 } ,
@@ -976,8 +975,8 @@ export const incomingShopLink =
976975 } ,
977976 } ) ;
978977 } else {
979- navigationRef . navigate ( 'Shop' , {
980- screen : ShopScreens . HOME ,
978+ navigationRef . navigate ( RootStacks . TABS , {
979+ screen : TabsScreens . SHOP ,
981980 params : {
982981 screen : ShopTabs . SHOP_ONLINE ,
983982 } ,
@@ -1030,10 +1029,7 @@ export const incomingLink =
10301029 navigationRef . navigate ( RootStacks . TABS , {
10311030 screen : TabsScreens . SETTINGS ,
10321031 params : {
1033- screen : SettingsScreens . Root ,
1034- params : {
1035- redirectTo : redirectTo as any ,
1036- } ,
1032+ redirectTo : redirectTo as any ,
10371033 } ,
10381034 } ) ;
10391035 } ;
@@ -1046,6 +1042,15 @@ export const incomingLink =
10461042 } ) ;
10471043 } ;
10481044 }
1045+ } else if ( pathSegments [ 0 ] === 'wallet-card' ) {
1046+ const cardPath = pathSegments [ 1 ] ;
1047+
1048+ if ( cardPath === 'pairing' ) {
1049+ navigationRef . navigate ( RootStacks . CARD , {
1050+ screen : CardScreens . PAIRING ,
1051+ params,
1052+ } ) ;
1053+ }
10491054 } else if ( pathSegments [ 0 ] === 'card' ) {
10501055 const cardPath = pathSegments [ 1 ] ;
10511056 const createCardHandler = ( cb : ( cards : Card [ ] ) => void ) => {
@@ -1058,9 +1063,6 @@ export const incomingLink =
10581063 } else {
10591064 navigationRef . navigate ( RootStacks . TABS , {
10601065 screen : TabsScreens . CARD ,
1061- params : {
1062- screen : CardScreens . HOME ,
1063- } ,
10641066 } ) ;
10651067 }
10661068 } ;
@@ -1077,27 +1079,21 @@ export const incomingLink =
10771079 } ) ;
10781080 } else if ( cardPath === 'offers' ) {
10791081 handler = createCardHandler ( cards => {
1080- navigationRef . navigate ( RootStacks . TABS , {
1081- screen : TabsScreens . CARD ,
1082+ navigationRef . navigate ( RootStacks . CARD , {
1083+ screen : CardScreens . SETTINGS ,
10821084 params : {
1083- screen : CardScreens . SETTINGS ,
1084- params : {
1085- id : cards [ 0 ] . id ,
1086- } ,
1085+ id : cards [ 0 ] . id ,
10871086 } ,
10881087 } ) ;
10891088
10901089 dispatch ( CardEffects . startOpenDosh ( ) ) ;
10911090 } ) ;
10921091 } else if ( cardPath === 'referral' ) {
10931092 handler = createCardHandler ( cards => {
1094- navigationRef . navigate ( RootStacks . TABS , {
1095- screen : TabsScreens . CARD ,
1093+ navigationRef . navigate ( RootStacks . CARD , {
1094+ screen : CardScreens . REFERRAL ,
10961095 params : {
1097- screen : CardScreens . REFERRAL ,
1098- params : {
1099- card : cards [ 0 ] ,
1100- } ,
1096+ card : cards [ 0 ] ,
11011097 } ,
11021098 } ) ;
11031099 } ) ;
0 commit comments