Files
inji-wallet/routes/routesConstants.ts
PuBHARGAVI fe3f8a56e1 fix(INJI-329): fix received card expand view and redirect the user to history screen after VC transfer (#799)
* fix(INJI-329): remove onboarding related code from MyVcs machine to show the expanded view of received card

Onboarding is used to check whether we need to show the intro sliders or not now it is handled differently in AppLayout

* fix(INJI-329): redirect the user to the history screen after successfull vc share

* fix(INJI-329): show incoming card screen on the verifier after closing the success popup

redirect the user to received cards screen if user clicks on view received card button and QR code screen if clicks on back button

* refactor(INJI-329): extract bottom tab, scan and request screen names into separate file to maintain the consistency

* refactor(INJI-329): remove activeTab from routeConstants as it is not being used

before new UI merge we have 3 different tabs in home screen and activeTab is used for displaying the current active tab
2023-09-12 13:34:21 +05:30

30 lines
823 B
TypeScript

import { MainBottomTabParamList } from './main';
export const BOTTOM_TAB_ROUTES = {
home: 'home' as keyof MainBottomTabParamList,
scan: 'scan' as keyof MainBottomTabParamList,
history: 'history' as keyof MainBottomTabParamList,
};
export const SCAN_ROUTES = {
ScanScreen: 'ScanScreen' as keyof ScanStackParamList,
SendVcScreen: 'SendVcScreen' as keyof ScanStackParamList,
};
export const REQUEST_ROUTES = {
Request: 'Request' as keyof RequestStackParamList,
RequestScreen: 'RequestScreen' as keyof RequestStackParamList,
ReceiveVcScreen: 'ReceiveVcScreen' as keyof RequestStackParamList,
};
export type ScanStackParamList = {
ScanScreen: undefined;
SendVcScreen: undefined;
};
export type RequestStackParamList = {
Request: undefined;
RequestScreen: undefined;
ReceiveVcScreen: undefined;
};