2024-05-11 12:08:23 -04:00
|
|
|
import { createNativeStackNavigator } from '@react-navigation/native-stack';
|
2024-05-20 10:54:13 +01:00
|
|
|
import React from 'react';
|
|
|
|
|
2024-05-11 12:08:23 -04:00
|
|
|
import navigationStyle from '../components/navigationStyle';
|
2024-05-20 10:54:13 +01:00
|
|
|
import { useTheme } from '../components/themes';
|
2024-05-11 12:08:23 -04:00
|
|
|
import loc from '../loc';
|
2024-05-20 10:54:13 +01:00
|
|
|
import { ViewEditMultisigCosignersComponent } from './LazyLoadViewEditMultisigCosignersStack';
|
2025-01-03 06:14:09 -04:00
|
|
|
import { ScanQRCodeComponent } from './LazyLoadScanQRCodeStack';
|
|
|
|
import { ScanQRCodeParamList } from './DetailViewStackParamList';
|
2024-05-11 12:08:23 -04:00
|
|
|
|
|
|
|
export type ViewEditMultisigCosignersStackParamList = {
|
|
|
|
ViewEditMultisigCosigners: {
|
|
|
|
walletID: string;
|
2025-01-03 06:14:09 -04:00
|
|
|
onBarScanned?: string;
|
2024-05-11 12:08:23 -04:00
|
|
|
};
|
2025-01-03 06:14:09 -04:00
|
|
|
ScanQRCode: ScanQRCodeParamList;
|
2024-05-11 12:08:23 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
const Stack = createNativeStackNavigator<ViewEditMultisigCosignersStackParamList>();
|
|
|
|
|
|
|
|
const ViewEditMultisigCosignersStackRoot = () => {
|
|
|
|
const theme = useTheme();
|
|
|
|
|
|
|
|
return (
|
|
|
|
<Stack.Navigator screenOptions={{ headerShadowVisible: false }}>
|
|
|
|
<Stack.Screen
|
|
|
|
name="ViewEditMultisigCosigners"
|
|
|
|
component={ViewEditMultisigCosignersComponent}
|
|
|
|
options={navigationStyle({
|
|
|
|
headerBackVisible: false,
|
|
|
|
title: loc.multisig.manage_keys,
|
|
|
|
})(theme)}
|
|
|
|
/>
|
2025-01-03 06:14:09 -04:00
|
|
|
<Stack.Screen
|
|
|
|
name="ScanQRCode"
|
|
|
|
component={ScanQRCodeComponent}
|
|
|
|
options={navigationStyle({
|
|
|
|
headerShown: false,
|
|
|
|
statusBarHidden: true,
|
|
|
|
presentation: 'fullScreenModal',
|
|
|
|
headerShadowVisible: false,
|
|
|
|
})(theme)}
|
|
|
|
/>
|
2024-05-11 12:08:23 -04:00
|
|
|
</Stack.Navigator>
|
|
|
|
);
|
|
|
|
};
|
|
|
|
|
|
|
|
export default ViewEditMultisigCosignersStackRoot;
|