test gemini
This commit is contained in:
@@ -1,31 +1,139 @@
|
||||
diff --git a/src/screens/Settings/AboutSettings.tsx b/src/screens/Settings/AboutSettings.tsx
|
||||
index 6b8257b91..bed851753 100644
|
||||
index 48ba7909e..68dbfc8ec 100644
|
||||
--- a/src/screens/Settings/AboutSettings.tsx
|
||||
+++ b/src/screens/Settings/AboutSettings.tsx
|
||||
@@ -1,40 +1,40 @@
|
||||
-import {useMemo} from 'react'
|
||||
-import {Platform} from 'react-native'
|
||||
-import {setStringAsync} from 'expo-clipboard'
|
||||
+import { useMemo } from 'react'
|
||||
+import { Platform } from 'react-native'
|
||||
+import { setStringAsync } from 'expo-clipboard'
|
||||
import * as FileSystem from 'expo-file-system/legacy'
|
||||
-import {Image} from 'expo-image'
|
||||
-import {msg, Trans} from '@lingui/macro'
|
||||
-import {useLingui} from '@lingui/react'
|
||||
-import {type NativeStackScreenProps} from '@react-navigation/native-stack'
|
||||
-import {useMutation} from '@tanstack/react-query'
|
||||
-import {Statsig} from 'statsig-react-native-expo'
|
||||
+import { Image } from 'expo-image'
|
||||
+import { msg, Trans } from '@lingui/macro'
|
||||
+import { useLingui } from '@lingui/react'
|
||||
+import { type NativeStackScreenProps } from '@react-navigation/native-stack'
|
||||
+import { useMutation } from '@tanstack/react-query'
|
||||
+import { Statsig } from 'statsig-react-native-expo'
|
||||
|
||||
-import {STATUS_PAGE_URL} from '#/lib/constants'
|
||||
-import {type CommonNavigatorParams} from '#/lib/routes/types'
|
||||
-import {isAndroid, isIOS, isNative} from '#/platform/detection'
|
||||
+import { STATUS_PAGE_URL } from '#/lib/constants'
|
||||
+import { type CommonNavigatorParams } from '#/lib/routes/types'
|
||||
+import { isAndroid, isIOS, isNative } from '#/platform/detection'
|
||||
import * as Toast from '#/view/com/util/Toast'
|
||||
import * as SettingsList from '#/screens/Settings/components/SettingsList'
|
||||
-import {Atom_Stroke2_Corner0_Rounded as AtomIcon} from '#/components/icons/Atom'
|
||||
-import {BroomSparkle_Stroke2_Corner2_Rounded as BroomSparkleIcon} from '#/components/icons/BroomSparkle'
|
||||
-import {CodeLines_Stroke2_Corner2_Rounded as CodeLinesIcon} from '#/components/icons/CodeLines'
|
||||
-import {Globe_Stroke2_Corner0_Rounded as GlobeIcon} from '#/components/icons/Globe'
|
||||
-import {Newspaper_Stroke2_Corner2_Rounded as NewspaperIcon} from '#/components/icons/Newspaper'
|
||||
-import {Wrench_Stroke2_Corner2_Rounded as WrenchIcon} from '#/components/icons/Wrench'
|
||||
+import { Atom_Stroke2_Corner0_Rounded as AtomIcon } from '#/components/icons/Atom'
|
||||
+import { BroomSparkle_Stroke2_Corner2_Rounded as BroomSparkleIcon } from '#/components/icons/BroomSparkle'
|
||||
+import { CodeLines_Stroke2_Corner2_Rounded as CodeLinesIcon } from '#/components/icons/CodeLines'
|
||||
+import { Globe_Stroke2_Corner0_Rounded as GlobeIcon } from '#/components/icons/Globe'
|
||||
+import { Newspaper_Stroke2_Corner2_Rounded as NewspaperIcon } from '#/components/icons/Newspaper'
|
||||
+import { Wrench_Stroke2_Corner2_Rounded as WrenchIcon } from '#/components/icons/Wrench'
|
||||
import * as Layout from '#/components/Layout'
|
||||
-import {Loader} from '#/components/Loader'
|
||||
+import { Loader } from '#/components/Loader'
|
||||
import * as env from '#/env'
|
||||
-import {useDemoMode} from '#/storage/hooks/demo-mode'
|
||||
-import {useDevMode} from '#/storage/hooks/dev-mode'
|
||||
-import {OTAInfo} from './components/OTAInfo'
|
||||
+import { useDemoMode } from '#/storage/hooks/demo-mode'
|
||||
+import { useDevMode } from '#/storage/hooks/dev-mode'
|
||||
+import { OTAInfo } from './components/OTAInfo'
|
||||
|
||||
type Props = NativeStackScreenProps<CommonNavigatorParams, 'AboutSettings'>
|
||||
-export function AboutSettingsScreen({}: Props) {
|
||||
- const {_, i18n} = useLingui()
|
||||
+export function AboutSettingsScreen({ }: Props) {
|
||||
+ const { _, i18n } = useLingui()
|
||||
const [devModeEnabled, setDevModeEnabled] = useDevMode()
|
||||
const [demoModeEnabled, setDemoModeEnabled] = useDemoMode()
|
||||
const stableID = useMemo(() => Statsig.getStableID(), [])
|
||||
|
||||
- const {mutate: onClearImageCache, isPending: isClearingImageCache} =
|
||||
+ const { mutate: onClearImageCache, isPending: isClearingImageCache } =
|
||||
useMutation({
|
||||
mutationFn: async () => {
|
||||
const freeSpaceBefore = await FileSystem.getFreeDiskStorageAsync()
|
||||
@@ -80,7 +80,7 @@ export function AboutSettingsScreen({}: Props) {
|
||||
<Layout.Content>
|
||||
<SettingsList.Container>
|
||||
<SettingsList.LinkItem
|
||||
- to="https://bsky.social/about/support/tos"
|
||||
+ to="/about/support/tos"
|
||||
- to="https://syu.is/about/support/tos"
|
||||
+ to="/support/tos"
|
||||
label={_(msg`Terms of Service`)}>
|
||||
<SettingsList.ItemIcon icon={NewspaperIcon} />
|
||||
<SettingsList.ItemText>
|
||||
@@ -88,7 +88,7 @@ export function AboutSettingsScreen({}: Props) {
|
||||
@@ -88,13 +88,21 @@ export function AboutSettingsScreen({}: Props) {
|
||||
</SettingsList.ItemText>
|
||||
</SettingsList.LinkItem>
|
||||
<SettingsList.LinkItem
|
||||
- to="https://bsky.social/about/support/privacy-policy"
|
||||
+ to="/about/support/privacy-policy"
|
||||
- to="https://syu.is/about/support/privacy-policy"
|
||||
+ to="/support/privacy"
|
||||
label={_(msg`Privacy Policy`)}>
|
||||
<SettingsList.ItemIcon icon={NewspaperIcon} />
|
||||
<SettingsList.ItemText>
|
||||
@@ -96,7 +96,7 @@ export function AboutSettingsScreen({}: Props) {
|
||||
<Trans>Privacy Policy</Trans>
|
||||
</SettingsList.ItemText>
|
||||
</SettingsList.LinkItem>
|
||||
+ <SettingsList.LinkItem
|
||||
+ to="/support/license"
|
||||
+ label={_(msg`License`)}>
|
||||
+ <SettingsList.ItemIcon icon={NewspaperIcon} />
|
||||
+ <SettingsList.ItemText>
|
||||
+ <Trans>License</Trans>
|
||||
+ </SettingsList.ItemText>
|
||||
+ </SettingsList.LinkItem>
|
||||
<SettingsList.LinkItem
|
||||
- to={STATUS_PAGE_URL}
|
||||
+ to="https://syu.is/"
|
||||
to={STATUS_PAGE_URL}
|
||||
label={_(msg`Status Page`)}>
|
||||
<SettingsList.ItemIcon icon={GlobeIcon} />
|
||||
<SettingsList.ItemText>
|
||||
@@ -131,17 +139,17 @@ export function AboutSettingsScreen({}: Props) {
|
||||
Toast.show(
|
||||
newDevModeEnabled
|
||||
? _(
|
||||
- msg({
|
||||
- message: 'Developer mode enabled',
|
||||
- context: 'toast',
|
||||
- }),
|
||||
- )
|
||||
+ msg({
|
||||
+ message: 'Developer mode enabled',
|
||||
+ context: 'toast',
|
||||
+ }),
|
||||
+ )
|
||||
: _(
|
||||
- msg({
|
||||
- message: 'Developer mode disabled',
|
||||
- context: 'toast',
|
||||
- }),
|
||||
- ),
|
||||
+ msg({
|
||||
+ message: 'Developer mode disabled',
|
||||
+ context: 'toast',
|
||||
+ }),
|
||||
+ ),
|
||||
)
|
||||
}}
|
||||
onPress={() => {
|
||||
@@ -166,7 +174,7 @@ export function AboutSettingsScreen({}: Props) {
|
||||
setDemoModeEnabled(newDemoModeEnabled)
|
||||
Toast.show(
|
||||
'Demo mode ' +
|
||||
- (newDemoModeEnabled ? 'enabled' : 'disabled'),
|
||||
+ (newDemoModeEnabled ? 'enabled' : 'disabled'),
|
||||
)
|
||||
}}
|
||||
label={
|
||||
|
||||
Reference in New Issue
Block a user