ai/at
1
0
Files
at/ios/patching/008-social-app-ios-policy-tos-error.patch
2025-12-08 01:38:23 +09:00

210 lines
8.4 KiB
Diff

diff --git a/src/view/screens/PrivacyPolicy.tsx b/src/view/screens/PrivacyPolicy.tsx
index a89eaadc4..d8fd51d68 100644
--- a/src/view/screens/PrivacyPolicy.tsx
+++ b/src/view/screens/PrivacyPolicy.tsx
@@ -1,52 +1,55 @@
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 {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 { ScrollView } from 'react-native'
import * as Layout from '#/components/Layout'
-import {ViewHeader} from '../com/util/ViewHeader'
-
-type Props = NativeStackScreenProps<CommonNavigatorParams, 'PrivacyPolicy'>
-export const PrivacyPolicyScreen = (_props: Props) => {
- const pal = usePalette('default')
- const {_} = useLingui()
- const setMinimalShellMode = useSetMinimalShellMode()
+import {useSetTitle} from '#/lib/hooks/useSetTitle'
+import {atoms as a, useTheme} from '#/alf'
+import {Text} from '#/components/Typography'
- useFocusEffect(
- React.useCallback(() => {
- setMinimalShellMode(false)
- }, [setMinimalShellMode]),
- )
+export function PrivacyPolicyScreen() {
+ useSetTitle('Privacy Policy')
+ const t = useTheme()
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>
+ <Layout.Header.Outer>
+ <Layout.Header.BackButton />
+ <Layout.Header.Content>
+ <Layout.Header.TitleText>Privacy Policy</Layout.Header.TitleText>
+ </Layout.Header.Content>
+ <Layout.Header.Slot />
+ </Layout.Header.Outer>
+ <Layout.Content>
+ <ScrollView
+ style={[a.flex_1]}
+ contentContainerStyle={[a.p_lg, a.pt_xl, a.pb_5xl]}>
+ <Text style={[a.text_2xl, a.font_bold, a.mb_lg]}>プライバシーポリシー</Text>
+
+ <Text style={[a.mb_md]}>
+ 本プライバシーポリシーは、当サービスにおける個人情報の取り扱いについて説明するものです。
+ </Text>
+
+ <Text style={[a.text_xl, a.font_bold, a.mt_lg, a.mb_md]}>収集する情報</Text>
+ <Text style={[a.mb_md]}>
+ 当サービスでは、アカウント作成時に提供いただく情報(メールアドレス、ユーザー名等)、
+ および利用時に自動的に収集される情報(アクセスログ等)を収集します。
+ </Text>
+
+ <Text style={[a.text_xl, a.font_bold, a.mt_lg, a.mb_md]}>情報の利用目的</Text>
+ <Text style={[a.mb_md]}>
+ 収集した情報は、サービスの提供、改善、セキュリティ維持のために利用します。
+ </Text>
+
+ <Text style={[a.text_xl, a.font_bold, a.mt_lg, a.mb_md]}>第三者への開示</Text>
+ <Text style={[a.mb_md]}>
+ 法令に基づく場合を除き、ユーザーの同意なく第三者に個人情報を開示することはありません。
+ </Text>
+
+ <Text style={[a.text_xl, a.font_bold, a.mt_lg, a.mb_md]}>お問い合わせ</Text>
+ <Text style={[a.mb_md]}>
+ プライバシーポリシーに関するお問い合わせは、https://syu.is までご連絡ください。
</Text>
- </View>
- <View style={s.footerSpacer} />
- </ScrollView>
+ </ScrollView>
+ </Layout.Content>
</Layout.Screen>
)
}
diff --git a/src/view/screens/TermsOfService.tsx b/src/view/screens/TermsOfService.tsx
index d843c713c..8d1d0d452 100644
--- a/src/view/screens/TermsOfService.tsx
+++ b/src/view/screens/TermsOfService.tsx
@@ -1,50 +1,61 @@
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 {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 { ScrollView } from 'react-native'
import * as Layout from '#/components/Layout'
-import {ViewHeader} from '../com/util/ViewHeader'
-
-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]),
- )
+import {useSetTitle} from '#/lib/hooks/useSetTitle'
+import {atoms as a, useTheme} from '#/alf'
+import {Text} from '#/components/Typography'
+
+export function TermsOfServiceScreen() {
+ useSetTitle('Terms of Service')
+ const t = useTheme()
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"
- />
+ <Layout.Header.Outer>
+ <Layout.Header.BackButton />
+ <Layout.Header.Content>
+ <Layout.Header.TitleText>Terms of Service</Layout.Header.TitleText>
+ </Layout.Header.Content>
+ <Layout.Header.Slot />
+ </Layout.Header.Outer>
+ <Layout.Content>
+ <ScrollView
+ style={[a.flex_1]}
+ contentContainerStyle={[a.p_lg, a.pt_xl, a.pb_5xl]}>
+ <Text style={[a.text_2xl, a.font_bold, a.mb_lg]}>利用規約</Text>
+
+ <Text style={[a.mb_md]}>
+ 本規約は、当サービスの利用条件を定めるものです。
+ </Text>
+
+ <Text style={[a.text_xl, a.font_bold, a.mt_lg, a.mb_md]}>サービスの利用</Text>
+ <Text style={[a.mb_md]}>
+ ユーザーは、本規約に同意の上、当サービスを利用するものとします。
+ 違法行為、他者への迷惑行為は禁止されています。
+ </Text>
+
+ <Text style={[a.text_xl, a.font_bold, a.mt_lg, a.mb_md]}>アカウント</Text>
+ <Text style={[a.mb_md]}>
+ ユーザーは、アカウント情報を適切に管理する責任を負います。
+ 第三者による不正利用があった場合、速やかにご連絡ください。
+ </Text>
+
+ <Text style={[a.text_xl, a.font_bold, a.mt_lg, a.mb_md]}>免責事項</Text>
+ <Text style={[a.mb_md]}>
+ 当サービスは現状のまま提供され、可用性、正確性について保証するものではありません。
+ </Text>
+
+ <Text style={[a.text_xl, a.font_bold, a.mt_lg, a.mb_md]}>規約の変更</Text>
+ <Text style={[a.mb_md]}>
+ 本規約は、必要に応じて変更されることがあります。変更後の利用をもって、変更に同意したものとみなします。
+ </Text>
+
+ <Text style={[a.text_xl, a.font_bold, a.mt_lg, a.mb_md]}>お問い合わせ</Text>
+ <Text style={[a.mb_md]}>
+ 利用規約に関するお問い合わせは、https://syu.is までご連絡ください。
</Text>
- </View>
- <View style={s.footerSpacer} />
- </ScrollView>
+ </ScrollView>
+ </Layout.Content>
</Layout.Screen>
)
}