2024-07-25 07:30:03 +00:00
|
|
|
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={() => {
|
2024-07-29 11:26:10 +00:00
|
|
|
navigation.navigate('Home');
|
2024-07-25 07:30:03 +00:00
|
|
|
}}>
|
|
|
|
Home
|
|
|
|
</Button>
|
|
|
|
</View>
|
|
|
|
);
|
|
|
|
};
|
|
|
|
|
|
|
|
export default InvalidPath;
|