@@ -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' ;
@@ -970,8 +969,8 @@ export const incomingShopLink =
970969 } ,
971970 } ) ;
972971 } else {
973- navigationRef . navigate ( 'Shop' , {
974- screen : ShopScreens . HOME ,
972+ navigationRef . navigate ( RootStacks . TABS , {
973+ screen : TabsScreens . SHOP ,
975974 params : {
976975 screen : ShopTabs . GIFT_CARDS ,
977976 } ,
@@ -1001,8 +1000,8 @@ export const incomingShopLink =
10011000 } ,
10021001 } ) ;
10031002 } else {
1004- navigationRef . navigate ( 'Shop' , {
1005- screen : ShopScreens . HOME ,
1003+ navigationRef . navigate ( RootStacks . TABS , {
1004+ screen : TabsScreens . SHOP ,
10061005 params : {
10071006 screen : ShopTabs . SHOP_ONLINE ,
10081007 } ,
@@ -1062,10 +1061,7 @@ export const incomingLink =
10621061 navigationRef . navigate ( RootStacks . TABS , {
10631062 screen : TabsScreens . SETTINGS ,
10641063 params : {
1065- screen : SettingsScreens . Root ,
1066- params : {
1067- redirectTo : redirectTo as any ,
1068- } ,
1064+ redirectTo : redirectTo as any ,
10691065 } ,
10701066 } ) ;
10711067 } ;
@@ -1078,6 +1074,15 @@ export const incomingLink =
10781074 } ) ;
10791075 } ;
10801076 }
1077+ } else if ( pathSegments [ 0 ] === 'wallet-card' ) {
1078+ const cardPath = pathSegments [ 1 ] ;
1079+
1080+ if ( cardPath === 'pairing' ) {
1081+ navigationRef . navigate ( RootStacks . CARD , {
1082+ screen : CardScreens . PAIRING ,
1083+ params,
1084+ } ) ;
1085+ }
10811086 } else if ( pathSegments [ 0 ] === 'card' ) {
10821087 const cardPath = pathSegments [ 1 ] ;
10831088 const createCardHandler = ( cb : ( cards : Card [ ] ) => void ) => {
@@ -1090,9 +1095,6 @@ export const incomingLink =
10901095 } else {
10911096 navigationRef . navigate ( RootStacks . TABS , {
10921097 screen : TabsScreens . CARD ,
1093- params : {
1094- screen : CardScreens . HOME ,
1095- } ,
10961098 } ) ;
10971099 }
10981100 } ;
@@ -1109,27 +1111,21 @@ export const incomingLink =
11091111 } ) ;
11101112 } else if ( cardPath === 'offers' ) {
11111113 handler = createCardHandler ( cards => {
1112- navigationRef . navigate ( RootStacks . TABS , {
1113- screen : TabsScreens . CARD ,
1114+ navigationRef . navigate ( RootStacks . CARD , {
1115+ screen : CardScreens . SETTINGS ,
11141116 params : {
1115- screen : CardScreens . SETTINGS ,
1116- params : {
1117- id : cards [ 0 ] . id ,
1118- } ,
1117+ id : cards [ 0 ] . id ,
11191118 } ,
11201119 } ) ;
11211120
11221121 dispatch ( CardEffects . startOpenDosh ( ) ) ;
11231122 } ) ;
11241123 } else if ( cardPath === 'referral' ) {
11251124 handler = createCardHandler ( cards => {
1126- navigationRef . navigate ( RootStacks . TABS , {
1127- screen : TabsScreens . CARD ,
1125+ navigationRef . navigate ( RootStacks . CARD , {
1126+ screen : CardScreens . REFERRAL ,
11281127 params : {
1129- screen : CardScreens . REFERRAL ,
1130- params : {
1131- card : cards [ 0 ] ,
1132- } ,
1128+ card : cards [ 0 ] ,
11331129 } ,
11341130 } ) ;
11351131 } ) ;
0 commit comments