From 745cbc0cce7802081ca9593023c51689d33e4ac6 Mon Sep 17 00:00:00 2001 From: IshaVenikar Date: Mon, 29 Jul 2024 14:38:05 +0530 Subject: [PATCH] Change first page url to Home --- src/App.tsx | 5 +++-- src/screens/AddNetwork.tsx | 2 +- src/screens/ApproveTransaction.tsx | 6 +++--- src/screens/ApproveTransfer.tsx | 8 ++++---- src/screens/EditNetwork.tsx | 2 +- src/screens/InvalidPath.tsx | 2 +- src/screens/SignRequest.tsx | 6 +++--- src/types.ts | 2 +- 8 files changed, 17 insertions(+), 16 deletions(-) diff --git a/src/App.tsx b/src/App.tsx index a587432..f151a34 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -223,12 +223,13 @@ const App = (): React.JSX.Element => { }} > Laconic Wallet, - }} /> + }} + /> { ), ]); - navigation.navigate('Laconic'); + navigation.navigate('Home'); }, [navigation, namespace, setNetworksData], ); diff --git a/src/screens/ApproveTransaction.tsx b/src/screens/ApproveTransaction.tsx index 97f4c1a..003d76b 100644 --- a/src/screens/ApproveTransaction.tsx +++ b/src/screens/ApproveTransaction.tsx @@ -214,7 +214,7 @@ const ApproveTransaction = ({ route }: ApproveTransactionProps) => { await web3wallet!.respondSessionRequest({ topic, response }); setIsRequestAccepted(false); - navigation.navigate('Laconic'); + navigation.navigate('Home'); } catch (error) { if (!(error instanceof Error)) { throw error; @@ -234,7 +234,7 @@ const ApproveTransaction = ({ route }: ApproveTransactionProps) => { response, }); - navigation.navigate('Laconic'); + navigation.navigate('Home'); }; return ( @@ -301,7 +301,7 @@ const ApproveTransaction = ({ route }: ApproveTransactionProps) => { visible={isTxErrorDialogOpen} hideDialog={async () => { setIsTxErrorDialogOpen(false); - navigation.navigate('Laconic'); + navigation.navigate('Home'); }} /> diff --git a/src/screens/ApproveTransfer.tsx b/src/screens/ApproveTransfer.tsx index 9ca98eb..b57856b 100644 --- a/src/screens/ApproveTransfer.tsx +++ b/src/screens/ApproveTransfer.tsx @@ -336,7 +336,7 @@ const ApproveTransfer = ({ route }: SignRequestProps) => { const { topic } = requestEvent; await web3wallet!.respondSessionRequest({ topic, response }); - navigation.navigate('Laconic'); + navigation.navigate('Home'); } catch (error) { if (!(error instanceof Error)) { throw error; @@ -356,7 +356,7 @@ const ApproveTransfer = ({ route }: SignRequestProps) => { response, }); - navigation.navigate('Laconic'); + navigation.navigate('Home'); }; useEffect(() => { @@ -404,7 +404,7 @@ const ApproveTransfer = ({ route }: SignRequestProps) => { { await rejectRequestHandler(); - navigation.navigate('Laconic'); + navigation.navigate('Home'); }} /> )} @@ -660,7 +660,7 @@ const ApproveTransfer = ({ route }: SignRequestProps) => { setIsTxErrorDialogOpen(false); if (!isSufficientFunds || !balance || !fees) { rejectRequestHandler(); - navigation.navigate('Laconic'); + navigation.navigate('Home'); } }} /> diff --git a/src/screens/EditNetwork.tsx b/src/screens/EditNetwork.tsx index 6443ddd..f6f90be 100644 --- a/src/screens/EditNetwork.tsx +++ b/src/screens/EditNetwork.tsx @@ -90,7 +90,7 @@ const EditNetwork = ({ route }: EditNetworkProps) => { setNetworksData(retrievedNetworksData); - navigation.navigate('Laconic'); + navigation.navigate('Home'); }, [networkData, navigation, setNetworksData], ); diff --git a/src/screens/InvalidPath.tsx b/src/screens/InvalidPath.tsx index eadef12..7cb1b3f 100644 --- a/src/screens/InvalidPath.tsx +++ b/src/screens/InvalidPath.tsx @@ -19,7 +19,7 @@ const InvalidPath = () => { diff --git a/src/screens/SignRequest.tsx b/src/screens/SignRequest.tsx index b768d17..185e3e7 100644 --- a/src/screens/SignRequest.tsx +++ b/src/screens/SignRequest.tsx @@ -222,7 +222,7 @@ const SignRequest = ({ route }: SignRequestProps) => { } setIsApproving(false); - navigation.navigate('Laconic'); + navigation.navigate('Home'); }; const rejectRequestHandler = async () => { @@ -237,7 +237,7 @@ const SignRequest = ({ route }: SignRequestProps) => { } setIsRejecting(false); - navigation.navigate('Laconic'); + navigation.navigate('Home'); }; useEffect(() => { @@ -252,7 +252,7 @@ const SignRequest = ({ route }: SignRequestProps) => { { await rejectRequestHandler(); - navigation.navigate('Laconic'); + navigation.navigate('Home'); }} /> )} diff --git a/src/types.ts b/src/types.ts index 45bdfe3..1da6bea 100644 --- a/src/types.ts +++ b/src/types.ts @@ -5,7 +5,7 @@ import { Web3WalletTypes } from '@walletconnect/web3wallet'; import { EncodeObject } from '@cosmjs/proto-signing'; export type StackParamsList = { - Laconic: undefined; + Home: undefined; SignMessage: { selectedNamespace: string; selectedChainId: string;