Base dark theme implementation
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import { useTranslation } from "react-i18next";
|
||||
import { Text } from "react-native";
|
||||
import { Button, Card } from "react-native-paper";
|
||||
|
||||
import { Button, Card, Text } from "react-native-paper";
|
||||
|
||||
export default function ErrorDisplay({ errorMessage, error, onDismiss }) {
|
||||
const { t } = useTranslation();
|
||||
@@ -14,11 +14,11 @@ export default function ErrorDisplay({ errorMessage, error, onDismiss }) {
|
||||
error ||
|
||||
"An unknown error has occured."}
|
||||
</Text>
|
||||
{onDismiss ? (
|
||||
<Card.Actions>
|
||||
<Button onPress={onDismiss}>{t("general.labels.dismiss")}</Button>
|
||||
</Card.Actions>
|
||||
) : null}
|
||||
{onDismiss ? (
|
||||
<Card.Actions>
|
||||
<Button onPress={onDismiss}>{t("general.labels.dismiss")}</Button>
|
||||
</Card.Actions>
|
||||
) : null}
|
||||
</Card.Content>
|
||||
</Card>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user