diff --git a/src/view/com/modals/ProfilePreview.tsx b/src/view/com/modals/ProfilePreview.tsx
index 88b0df71..1764b6b9 100644
--- a/src/view/com/modals/ProfilePreview.tsx
+++ b/src/view/com/modals/ProfilePreview.tsx
@@ -46,7 +46,7 @@ export function Component({did}: {did: string}) {
if (profileError) {
return (
diff --git a/src/view/com/util/error/ErrorScreen.tsx b/src/view/com/util/error/ErrorScreen.tsx
index 45444331..98fe6437 100644
--- a/src/view/com/util/error/ErrorScreen.tsx
+++ b/src/view/com/util/error/ErrorScreen.tsx
@@ -11,6 +11,8 @@ import {Button} from '../forms/Button'
import {CenteredView} from '../Views'
import {Trans, msg} from '@lingui/macro'
import {useLingui} from '@lingui/react'
+import {ViewHeader} from 'view/com/util/ViewHeader'
+import {useWebMediaQueries} from 'lib/hooks/useWebMediaQueries'
export function ErrorScreen({
title,
@@ -18,66 +20,72 @@ export function ErrorScreen({
details,
onPressTryAgain,
testID,
+ showHeader,
}: {
title: string
message: string
details?: string
onPressTryAgain?: () => void
testID?: string
+ showHeader?: boolean
}) {
const theme = useTheme()
+ const {isMobile} = useWebMediaQueries()
const pal = usePalette('default')
const {_} = useLingui()
return (
-
-
-
-
-
-
-
- {title}
-
- {message}
- {details && (
-
- {details}
-
- )}
- {onPressTryAgain && (
-
-
+
- )}
-
+
+ {title}
+
+ {message}
+ {details && (
+
+ {details}
+
+ )}
+ {onPressTryAgain && (
+
+
+
+ )}
+
+ >
)
}
diff --git a/src/view/screens/Profile.tsx b/src/view/screens/Profile.tsx
index 6d0f15d8..cc54ad3b 100644
--- a/src/view/screens/Profile.tsx
+++ b/src/view/screens/Profile.tsx
@@ -50,6 +50,7 @@ interface SectionRef {
type Props = NativeStackScreenProps
export function ProfileScreen({route}: Props) {
+ const {_} = useLingui()
const {currentAccount} = useSession()
const name =
route.params.name === 'me' ? currentAccount?.did : route.params.name
@@ -97,14 +98,13 @@ export function ProfileScreen({route}: Props) {
}
if (resolveError || profileError) {
return (
-
-
-
+
)
}
if (profile && moderationOpts) {
@@ -118,14 +118,13 @@ export function ProfileScreen({route}: Props) {
}
// should never happen
return (
-
-
-
+
)
}