mirror of
https://github.com/mosip/inji-wallet.git
synced 2026-01-09 21:48:04 -05:00
* 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
30 lines
823 B
TypeScript
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;
|
|
};
|