Change first page url to Home
This commit is contained in:
parent
e8535fbdd5
commit
745cbc0cce
@ -223,12 +223,13 @@ const App = (): React.JSX.Element => {
|
|||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<Stack.Screen
|
<Stack.Screen
|
||||||
name="Laconic"
|
name="Home"
|
||||||
component={HomeScreen}
|
component={HomeScreen}
|
||||||
options={{
|
options={{
|
||||||
// eslint-disable-next-line react/no-unstable-nested-components
|
// eslint-disable-next-line react/no-unstable-nested-components
|
||||||
headerTitle: () => <Text variant="titleLarge">Laconic Wallet</Text>,
|
headerTitle: () => <Text variant="titleLarge">Laconic Wallet</Text>,
|
||||||
}} />
|
}}
|
||||||
|
/>
|
||||||
<Stack.Screen
|
<Stack.Screen
|
||||||
name="SignMessage"
|
name="SignMessage"
|
||||||
component={SignMessage}
|
component={SignMessage}
|
||||||
|
@ -198,7 +198,7 @@ const AddNetwork = () => {
|
|||||||
),
|
),
|
||||||
]);
|
]);
|
||||||
|
|
||||||
navigation.navigate('Laconic');
|
navigation.navigate('Home');
|
||||||
},
|
},
|
||||||
[navigation, namespace, setNetworksData],
|
[navigation, namespace, setNetworksData],
|
||||||
);
|
);
|
||||||
|
@ -214,7 +214,7 @@ const ApproveTransaction = ({ route }: ApproveTransactionProps) => {
|
|||||||
|
|
||||||
await web3wallet!.respondSessionRequest({ topic, response });
|
await web3wallet!.respondSessionRequest({ topic, response });
|
||||||
setIsRequestAccepted(false);
|
setIsRequestAccepted(false);
|
||||||
navigation.navigate('Laconic');
|
navigation.navigate('Home');
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
if (!(error instanceof Error)) {
|
if (!(error instanceof Error)) {
|
||||||
throw error;
|
throw error;
|
||||||
@ -234,7 +234,7 @@ const ApproveTransaction = ({ route }: ApproveTransactionProps) => {
|
|||||||
response,
|
response,
|
||||||
});
|
});
|
||||||
|
|
||||||
navigation.navigate('Laconic');
|
navigation.navigate('Home');
|
||||||
};
|
};
|
||||||
|
|
||||||
return (
|
return (
|
||||||
@ -301,7 +301,7 @@ const ApproveTransaction = ({ route }: ApproveTransactionProps) => {
|
|||||||
visible={isTxErrorDialogOpen}
|
visible={isTxErrorDialogOpen}
|
||||||
hideDialog={async () => {
|
hideDialog={async () => {
|
||||||
setIsTxErrorDialogOpen(false);
|
setIsTxErrorDialogOpen(false);
|
||||||
navigation.navigate('Laconic');
|
navigation.navigate('Home');
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
</>
|
</>
|
||||||
|
@ -336,7 +336,7 @@ const ApproveTransfer = ({ route }: SignRequestProps) => {
|
|||||||
|
|
||||||
const { topic } = requestEvent;
|
const { topic } = requestEvent;
|
||||||
await web3wallet!.respondSessionRequest({ topic, response });
|
await web3wallet!.respondSessionRequest({ topic, response });
|
||||||
navigation.navigate('Laconic');
|
navigation.navigate('Home');
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
if (!(error instanceof Error)) {
|
if (!(error instanceof Error)) {
|
||||||
throw error;
|
throw error;
|
||||||
@ -356,7 +356,7 @@ const ApproveTransfer = ({ route }: SignRequestProps) => {
|
|||||||
response,
|
response,
|
||||||
});
|
});
|
||||||
|
|
||||||
navigation.navigate('Laconic');
|
navigation.navigate('Home');
|
||||||
};
|
};
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
@ -404,7 +404,7 @@ const ApproveTransfer = ({ route }: SignRequestProps) => {
|
|||||||
<Appbar.BackAction
|
<Appbar.BackAction
|
||||||
onPress={async () => {
|
onPress={async () => {
|
||||||
await rejectRequestHandler();
|
await rejectRequestHandler();
|
||||||
navigation.navigate('Laconic');
|
navigation.navigate('Home');
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
@ -660,7 +660,7 @@ const ApproveTransfer = ({ route }: SignRequestProps) => {
|
|||||||
setIsTxErrorDialogOpen(false);
|
setIsTxErrorDialogOpen(false);
|
||||||
if (!isSufficientFunds || !balance || !fees) {
|
if (!isSufficientFunds || !balance || !fees) {
|
||||||
rejectRequestHandler();
|
rejectRequestHandler();
|
||||||
navigation.navigate('Laconic');
|
navigation.navigate('Home');
|
||||||
}
|
}
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
|
@ -90,7 +90,7 @@ const EditNetwork = ({ route }: EditNetworkProps) => {
|
|||||||
|
|
||||||
setNetworksData(retrievedNetworksData);
|
setNetworksData(retrievedNetworksData);
|
||||||
|
|
||||||
navigation.navigate('Laconic');
|
navigation.navigate('Home');
|
||||||
},
|
},
|
||||||
[networkData, navigation, setNetworksData],
|
[networkData, navigation, setNetworksData],
|
||||||
);
|
);
|
||||||
|
@ -19,7 +19,7 @@ const InvalidPath = () => {
|
|||||||
<Button
|
<Button
|
||||||
mode="contained"
|
mode="contained"
|
||||||
onPress={() => {
|
onPress={() => {
|
||||||
navigation.navigate('Laconic');
|
navigation.navigate('Home');
|
||||||
}}>
|
}}>
|
||||||
Home
|
Home
|
||||||
</Button>
|
</Button>
|
||||||
|
@ -222,7 +222,7 @@ const SignRequest = ({ route }: SignRequestProps) => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
setIsApproving(false);
|
setIsApproving(false);
|
||||||
navigation.navigate('Laconic');
|
navigation.navigate('Home');
|
||||||
};
|
};
|
||||||
|
|
||||||
const rejectRequestHandler = async () => {
|
const rejectRequestHandler = async () => {
|
||||||
@ -237,7 +237,7 @@ const SignRequest = ({ route }: SignRequestProps) => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
setIsRejecting(false);
|
setIsRejecting(false);
|
||||||
navigation.navigate('Laconic');
|
navigation.navigate('Home');
|
||||||
};
|
};
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
@ -252,7 +252,7 @@ const SignRequest = ({ route }: SignRequestProps) => {
|
|||||||
<Appbar.BackAction
|
<Appbar.BackAction
|
||||||
onPress={async () => {
|
onPress={async () => {
|
||||||
await rejectRequestHandler();
|
await rejectRequestHandler();
|
||||||
navigation.navigate('Laconic');
|
navigation.navigate('Home');
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
|
@ -5,7 +5,7 @@ import { Web3WalletTypes } from '@walletconnect/web3wallet';
|
|||||||
import { EncodeObject } from '@cosmjs/proto-signing';
|
import { EncodeObject } from '@cosmjs/proto-signing';
|
||||||
|
|
||||||
export type StackParamsList = {
|
export type StackParamsList = {
|
||||||
Laconic: undefined;
|
Home: undefined;
|
||||||
SignMessage: {
|
SignMessage: {
|
||||||
selectedNamespace: string;
|
selectedNamespace: string;
|
||||||
selectedChainId: string;
|
selectedChainId: string;
|
||||||
|
Loading…
Reference in New Issue
Block a user