diff --git a/src/view/com/util/error/ErrorScreen.tsx b/src/view/com/util/error/ErrorScreen.tsx
index 846f4d2951..e9b0e50a3c 100644
--- a/src/view/com/util/error/ErrorScreen.tsx
+++ b/src/view/com/util/error/ErrorScreen.tsx
@@ -1,4 +1,4 @@
-import {StyleSheet, View} from 'react-native'
+import {View} from 'react-native'
import {
FontAwesomeIcon,
FontAwesomeIconStyle,
@@ -7,12 +7,11 @@ import {msg, Trans} from '@lingui/macro'
import {useLingui} from '@lingui/react'
import {usePalette} from '#/lib/hooks/usePalette'
-import {useWebMediaQueries} from '#/lib/hooks/useWebMediaQueries'
-import {useTheme} from '#/lib/ThemeContext'
-import {ViewHeader} from '#/view/com/util/ViewHeader'
-import {Button} from '../forms/Button'
-import {Text} from '../text/Text'
-import {CenteredView} from '../Views'
+import {atoms as a, useTheme} from '#/alf'
+import {Button, ButtonIcon, ButtonText} from '#/components/Button'
+import {ArrowRotateCounterClockwise_Stroke2_Corner0_Rounded as ArrowRotateCounterClockwiseIcon} from '#/components/icons/ArrowRotateCounterClockwise'
+import * as Layout from '#/components/Layout'
+import {Text} from '#/components/Typography'
export function ErrorScreen({
title,
@@ -29,22 +28,32 @@ export function ErrorScreen({
testID?: string
showHeader?: boolean
}) {
- const theme = useTheme()
- const {isMobile} = useWebMediaQueries()
+ const t = useTheme()
const pal = usePalette('default')
const {_} = useLingui()
return (
- <>
- {showHeader && isMobile && (
-
+
+ {showHeader && (
+
+
+
+
+ Error
+
+
+
+
)}
-
-
+
+
-
+
{title}
- {message}
+ {message}
{details && (
-
- {details}
-
+
+
+ {details}
+
+
)}
{onPressTryAgain && (
-
+
)}
-
- >
+
+
)
}
-
-const styles = StyleSheet.create({
- outer: {
- flex: 1,
- paddingVertical: 30,
- paddingHorizontal: 14,
- },
- title: {
- textAlign: 'center',
- marginBottom: 10,
- },
- message: {
- textAlign: 'center',
- marginBottom: 20,
- },
- details: {
- textAlign: 'center',
- paddingVertical: 10,
- paddingHorizontal: 14,
- overflow: 'hidden',
- marginBottom: 20,
- },
- btnContainer: {
- alignItems: 'center',
- },
- btn: {
- flexDirection: 'row',
- alignItems: 'center',
- paddingHorizontal: 16,
- paddingVertical: 10,
- },
- btnText: {
- marginLeft: 5,
- },
- errorIconContainer: {
- alignItems: 'center',
- marginBottom: 10,
- },
- errorIcon: {
- borderRadius: 25,
- width: 50,
- height: 50,
- alignItems: 'center',
- justifyContent: 'center',
- },
-})