laconic-wallet-web/src/screens/InvalidPath.tsx
nabarun 4d5fd722fb UI/UX improvements in laconic wallet web app (#3)
Part of [laconicd testnet validator enrollment](https://www.notion.so/laconicd-testnet-validator-enrollment-6fc1d3cafcc64fef8c5ed3affa27c675)

- Fix private key shown in dialog box
- Add laconicd network and set as default
- Update web app title and favicon

Co-authored-by: IshaVenikar <ishavenikar7@gmail.com>
Reviewed-on: #3
2024-07-29 11:26:10 +00:00

31 lines
807 B
TypeScript

import React from 'react';
import { View, Text } from 'react-native';
import { Button } from 'react-native-paper';
import { NativeStackNavigationProp } from '@react-navigation/native-stack';
import { useNavigation } from '@react-navigation/native';
import { StackParamsList } from '../types';
import styles from '../styles/stylesheet';
const InvalidPath = () => {
const navigation =
useNavigation<NativeStackNavigationProp<StackParamsList>>();
return (
<View style={styles.badRequestContainer}>
<Text style={styles.invalidMessageText}>
The signature request was invalid.
</Text>
<Button
mode="contained"
onPress={() => {
navigation.navigate('Home');
}}>
Home
</Button>
</View>
);
};
export default InvalidPath;