Bluesky app fork with some witchin' additions 馃挮
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

at main 53 lines 1.7 kB view raw
1import React from 'react' 2import {View} from 'react-native' 3import {msg} from '@lingui/core/macro' 4import {useLingui} from '@lingui/react' 5import {Trans} from '@lingui/react/macro' 6import {useFocusEffect} from '@react-navigation/native' 7 8import {usePalette} from '#/lib/hooks/usePalette' 9import { 10 type CommonNavigatorParams, 11 type NativeStackScreenProps, 12} from '#/lib/routes/types' 13import {s} from '#/lib/styles' 14import {useSetMinimalShellMode} from '#/state/shell' 15import {TextLink} from '#/view/com/util/Link' 16import {Text} from '#/view/com/util/text/Text' 17import {ScrollView} from '#/view/com/util/Views' 18import * as Layout from '#/components/Layout' 19import {ViewHeader} from '../com/util/ViewHeader' 20 21type Props = NativeStackScreenProps<CommonNavigatorParams, 'PrivacyPolicy'> 22export const PrivacyPolicyScreen = (_props: Props) => { 23 const pal = usePalette('default') 24 const {_} = useLingui() 25 const setMinimalShellMode = useSetMinimalShellMode() 26 27 useFocusEffect( 28 React.useCallback(() => { 29 setMinimalShellMode(false) 30 }, [setMinimalShellMode]), 31 ) 32 33 return ( 34 <Layout.Screen> 35 <ViewHeader title={_(msg`Privacy Policy`)} /> 36 <ScrollView style={[s.hContentRegion, pal.view]}> 37 <View style={[s.p20]}> 38 <Text style={pal.text}> 39 <Trans> 40 The Privacy Policy has been moved to{' '} 41 <TextLink 42 style={pal.link} 43 href="https://witchsky.app/about/privacy" 44 text="witchsky.app/about/privacy" 45 /> 46 </Trans> 47 </Text> 48 </View> 49 <View style={s.footerSpacer} /> 50 </ScrollView> 51 </Layout.Screen> 52 ) 53}