162 lines
6.1 KiB
Diff
162 lines
6.1 KiB
Diff
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) {
|
|
<Layout.Content>
|
|
<SettingsList.Container>
|
|
<SettingsList.LinkItem
|
|
- to="https://bsky.social/about/support/tos"
|
|
+ to="https://syu.is/about/support/tos"
|
|
label={_(msg`Terms of Service`)}>
|
|
<SettingsList.ItemIcon icon={NewspaperIcon} />
|
|
<SettingsList.ItemText>
|
|
<Trans>Terms of Service</Trans>
|
|
</SettingsList.ItemText>
|
|
</SettingsList.LinkItem>
|
|
<SettingsList.LinkItem
|
|
- to="https://bsky.social/about/support/privacy-policy"
|
|
+ to="https://syu.is/about/support/privacy-policy"
|
|
label={_(msg`Privacy Policy`)}>
|
|
<SettingsList.ItemIcon icon={NewspaperIcon} />
|
|
<SettingsList.ItemText>
|
|
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{' '}
|
|
<InlineLinkText
|
|
label={_(msg`Bluesky Social Terms of Service`)}
|
|
- to="https://bsky.social/about/support/tos"
|
|
+ to="https://syu.is/about/support/tos"
|
|
style={[a.text_md, a.leading_normal]}
|
|
overridePresentation>
|
|
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<CommonNavigatorParams, 'PrivacyPolicy'>
|
|
+type Props = NativeStackScreenProps<CommonNavigatorParams, 'PrivacyPolicy'>;
|
|
+
|
|
export const PrivacyPolicyScreen = (_props: Props) => {
|
|
- const pal = usePalette('default')
|
|
- const {_} = useLingui()
|
|
- const setMinimalShellMode = useSetMinimalShellMode()
|
|
-
|
|
- useFocusEffect(
|
|
- React.useCallback(() => {
|
|
- setMinimalShellMode(false)
|
|
- }, [setMinimalShellMode]),
|
|
- )
|
|
-
|
|
- return (
|
|
- <Layout.Screen>
|
|
- <ViewHeader title={_(msg`Privacy Policy`)} />
|
|
- <ScrollView style={[s.hContentRegion, pal.view]}>
|
|
- <View style={[s.p20]}>
|
|
- <Text style={pal.text}>
|
|
- <Trans>
|
|
- The Privacy Policy has been moved to{' '}
|
|
- <TextLink
|
|
- style={pal.link}
|
|
- href="https://bsky.social/about/support/privacy-policy"
|
|
- text="bsky.social/about/support/privacy-policy"
|
|
- />
|
|
- </Trans>
|
|
- </Text>
|
|
- </View>
|
|
- <View style={s.footerSpacer} />
|
|
- </ScrollView>
|
|
- </Layout.Screen>
|
|
- )
|
|
-}
|
|
+ return <WebView source={{ uri: 'https://syu.is/about/support/privacy-policy' }} />;
|
|
+};
|
|
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<CommonNavigatorParams, 'TermsOfService'>
|
|
+type Props = NativeStackScreenProps<CommonNavigatorParams, 'TermsOfService'>;
|
|
+
|
|
export const TermsOfServiceScreen = (_props: Props) => {
|
|
- const pal = usePalette('default')
|
|
- const setMinimalShellMode = useSetMinimalShellMode()
|
|
- const {_} = useLingui()
|
|
-
|
|
- useFocusEffect(
|
|
- React.useCallback(() => {
|
|
- setMinimalShellMode(false)
|
|
- }, [setMinimalShellMode]),
|
|
- )
|
|
-
|
|
- return (
|
|
- <Layout.Screen>
|
|
- <ViewHeader title={_(msg`Terms of Service`)} />
|
|
- <ScrollView style={[s.hContentRegion, pal.view]}>
|
|
- <View style={[s.p20]}>
|
|
- <Text style={pal.text}>
|
|
- <Trans>The Terms of Service have been moved to</Trans>{' '}
|
|
- <TextLink
|
|
- style={pal.link}
|
|
- href="https://bsky.social/about/support/tos"
|
|
- text="bsky.social/about/support/tos"
|
|
- />
|
|
- </Text>
|
|
- </View>
|
|
- <View style={s.footerSpacer} />
|
|
- </ScrollView>
|
|
- </Layout.Screen>
|
|
- )
|
|
-}
|
|
+ return <WebView source={{ uri: 'https://syu.is/about/support/tos' }} />;
|
|
+};
|