From e52adeac127b2febb39d6c1a61bcc523baff1aa0 Mon Sep 17 00:00:00 2001 From: DS Boyce <260543580+ds-boyce@users.noreply.github.com> Date: Fri, 29 May 2026 06:59:08 -0700 Subject: [PATCH] Fix layout of NotFound screen and convert to ALF (#10649) --- src/view/screens/NotFound.tsx | 81 +++++++++++++++++------------------ 1 file changed, 39 insertions(+), 42 deletions(-) diff --git a/src/view/screens/NotFound.tsx b/src/view/screens/NotFound.tsx index 4f5f2c0915..1e5991b031 100644 --- a/src/view/screens/NotFound.tsx +++ b/src/view/screens/NotFound.tsx @@ -1,21 +1,17 @@ import {useCallback} from 'react' -import {StyleSheet, View} from 'react-native' -import {msg} from '@lingui/core/macro' -import {useLingui} from '@lingui/react' -import {Trans} from '@lingui/react/macro' +import {View} from 'react-native' +import {Trans, useLingui} from '@lingui/react/macro' import {StackActions, useNavigation} from '@react-navigation/native' -import {usePalette} from '#/lib/hooks/usePalette' import {type NavigationProp} from '#/lib/routes/types' -import {s} from '#/lib/styles' -import {Button} from '#/view/com/util/forms/Button' -import {Text} from '#/view/com/util/text/Text' -import {ViewHeader} from '#/view/com/util/ViewHeader' +import {atoms as a, useTheme} from '#/alf' +import {Button, ButtonText} from '#/components/Button' import * as Layout from '#/components/Layout' +import {Text} from '#/components/Typography' export const NotFoundScreen = () => { - const pal = usePalette('default') - const {_} = useLingui() + const t = useTheme() + const {t: l} = useLingui() const navigation = useNavigation() const canGoBack = navigation.canGoBack() @@ -30,37 +26,38 @@ export const NotFoundScreen = () => { return ( - - - - Page not found - - - - We're sorry! We can't find the page you were looking for. - - - + + ) } - -const styles = StyleSheet.create({ - container: { - paddingTop: 100, - paddingHorizontal: 20, - alignItems: 'center', - height: '100%', - }, -})