added some checks for bugs
This commit is contained in:
@@ -1,10 +1,20 @@
|
||||
import React from "react";
|
||||
import { View, Text } from "react-native";
|
||||
import { StyleSheet,View, Text } from "react-native";
|
||||
import { Title } from "react-native-paper";
|
||||
|
||||
export default function ErrorDisplay({ errorMessage }) {
|
||||
return (
|
||||
<View style={{ backgroundColor: "red", paddingLeft:10, paddingVertical:8 }}>
|
||||
<Text>{errorMessage}</Text>
|
||||
<View >
|
||||
<Title style={localStyles.alert}>{errorMessage}</Title>
|
||||
{/* <Text>{errorMessage}</Text> */}
|
||||
</View>
|
||||
);
|
||||
}
|
||||
const localStyles = StyleSheet.create({
|
||||
alert: {
|
||||
color: "red",
|
||||
textAlign: "center",
|
||||
margin: 15,
|
||||
padding: 15,
|
||||
},
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user