* Update blogpost link to bsky.social and remove unnecessary localisation params at end of Play Store URL in README.md * Update privacy policy link to bsky.social in PrivacyPolicy.tsx * Update TOS link to bsky.social in TermsOfService.tsx * Update links to bsky.social in Links.tsx * Update links to bsky.social in SplashScreen.web.tsx * Update link to bsky.social in base.html * Update links to bsky.social in HomeLoggedOutCTA.tsx * Update links to bsky.social in RightNav.tsx * Update links to bsky.social in Drawer.tsx * Update DMCA link to bsky.social in Modal.tsx * Update link to copyright policy on bsky.social in CopyrightPolicy.tsx * Update link to bsky.social in CommunityGuidelines.tsx * Update links to bsky.social in Settings.tsx * Update to bsky.social in Typography.tsx
47 lines
1.5 KiB
TypeScript
47 lines
1.5 KiB
TypeScript
import React from 'react'
|
|
import {View} from 'react-native'
|
|
import {useFocusEffect} from '@react-navigation/native'
|
|
import {Text} from 'view/com/util/text/Text'
|
|
import {TextLink} from 'view/com/util/Link'
|
|
import {NativeStackScreenProps, CommonNavigatorParams} from 'lib/routes/types'
|
|
import {ViewHeader} from '../com/util/ViewHeader'
|
|
import {ScrollView} from 'view/com/util/Views'
|
|
import {usePalette} from 'lib/hooks/usePalette'
|
|
import {s} from 'lib/styles'
|
|
import {useSetMinimalShellMode} from '#/state/shell'
|
|
import {Trans, msg} from '@lingui/macro'
|
|
import {useLingui} from '@lingui/react'
|
|
|
|
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 (
|
|
<View>
|
|
<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>
|
|
</View>
|
|
)
|
|
}
|