diff --git a/src/screens/Settings/AboutSettings.tsx b/src/screens/Settings/AboutSettings.tsx index 585c490a7..db747a8d5 100644 --- a/src/screens/Settings/AboutSettings.tsx +++ b/src/screens/Settings/AboutSettings.tsx @@ -80,15 +80,15 @@ export function AboutSettingsScreen({}: Props) { Terms of Service diff --git a/src/screens/Takendown.tsx b/src/screens/Takendown.tsx index 451a3780f..a2818a514 100644 --- a/src/screens/Takendown.tsx +++ b/src/screens/Takendown.tsx @@ -224,7 +224,7 @@ export function Takendown() { Your account was found to be in violation of the{' '} Bluesky Social Terms of Service diff --git a/src/view/screens/PrivacyPolicy.tsx b/src/view/screens/PrivacyPolicy.tsx index 57471239c..e8888b52f 100644 --- a/src/view/screens/PrivacyPolicy.tsx +++ b/src/view/screens/PrivacyPolicy.tsx @@ -1,52 +1,11 @@ -import React from 'react' -import {View} from 'react-native' -import {msg, Trans} from '@lingui/macro' -import {useLingui} from '@lingui/react' -import {useFocusEffect} from '@react-navigation/native' +import React from 'react'; +import { WebView } from 'react-native-webview'; -import {usePalette} from '#/lib/hooks/usePalette' -import { - type CommonNavigatorParams, - type NativeStackScreenProps, -} from '#/lib/routes/types' -import {s} from '#/lib/styles' -import {useSetMinimalShellMode} from '#/state/shell' -import {TextLink} from '#/view/com/util/Link' -import {Text} from '#/view/com/util/text/Text' -import {ScrollView} from '#/view/com/util/Views' -import * as Layout from '#/components/Layout' -import {ViewHeader} from '../com/util/ViewHeader' +import { type CommonNavigatorParams, type NativeStackScreenProps } from '#/lib/routes/types'; -type Props = NativeStackScreenProps +type Props = NativeStackScreenProps; + export const PrivacyPolicyScreen = (_props: Props) => { - const pal = usePalette('default') - const {_} = useLingui() - const setMinimalShellMode = useSetMinimalShellMode() - - useFocusEffect( - React.useCallback(() => { - setMinimalShellMode(false) - }, [setMinimalShellMode]), - ) - - return ( - - - - - - - The Privacy Policy has been moved to{' '} - - - - - - - - ) -} + return ; +}; diff --git a/src/view/screens/TermsOfService.tsx b/src/view/screens/TermsOfService.tsx index 101869e54..92850901e 100644 --- a/src/view/screens/TermsOfService.tsx +++ b/src/view/screens/TermsOfService.tsx @@ -1,51 +1,11 @@ -import React from 'react' -import {View} from 'react-native' -import {msg, Trans} from '@lingui/macro' -import {useLingui} from '@lingui/react' -import {useFocusEffect} from '@react-navigation/native' +import React from 'react'; +import { WebView } from 'react-native-webview'; -import {usePalette} from '#/lib/hooks/usePalette' -import { - type CommonNavigatorParams, - type NativeStackScreenProps, -} from '#/lib/routes/types' -import {s} from '#/lib/styles' -import {useSetMinimalShellMode} from '#/state/shell' -import {TextLink} from '#/view/com/util/Link' -import {Text} from '#/view/com/util/text/Text' -import {ScrollView} from '#/view/com/util/Views' -import * as Layout from '#/components/Layout' -import {ViewHeader} from '../com/util/ViewHeader' +import { type CommonNavigatorParams, type NativeStackScreenProps } from '#/lib/routes/types'; -type Props = NativeStackScreenProps +type Props = NativeStackScreenProps; + export const TermsOfServiceScreen = (_props: Props) => { - const pal = usePalette('default') - const setMinimalShellMode = useSetMinimalShellMode() - const {_} = useLingui() - - useFocusEffect( - React.useCallback(() => { - setMinimalShellMode(false) - }, [setMinimalShellMode]), - ) - - return ( - - - - - - The Terms of Service have been moved to{' '} - - - - - - - ) -} + return ; +};