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%', - }, -})