From 1de1d10cf6b823f075112f8f938963c95b7fd3ba Mon Sep 17 00:00:00 2001 From: Hailey Date: Thu, 8 Feb 2024 12:01:36 -0800 Subject: Fix error screen on native, use `Not Found` for profile errors instead of `Oops!` (#2789) * remove unnecessary `` * show back header on profile error * use `Not Found` instead of `Oops` for account errors * use `Not Found` instead of `Oops` for account errors --- src/view/screens/Profile.tsx | 31 +++++++++++++++---------------- 1 file changed, 15 insertions(+), 16 deletions(-) (limited to 'src/view/screens/Profile.tsx') diff --git a/src/view/screens/Profile.tsx b/src/view/screens/Profile.tsx index 6d0f15d81..cc54ad3b2 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 ( - - - + ) } -- cgit 1.4.1