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 51 lines 1.6 kB view raw
1import {useCallback} 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, 'TermsOfService'> 22export const TermsOfServiceScreen = (_props: Props) => { 23 const pal = usePalette('default') 24 const setMinimalShellMode = useSetMinimalShellMode() 25 const {_} = useLingui() 26 27 useFocusEffect( 28 useCallback(() => { 29 setMinimalShellMode(false) 30 }, [setMinimalShellMode]), 31 ) 32 33 return ( 34 <Layout.Screen> 35 <ViewHeader title={_(msg`Terms of Service`)} /> 36 <ScrollView style={[s.hContentRegion, pal.view]}> 37 <View style={[s.p20]}> 38 <Text style={pal.text}> 39 <Trans>The Terms of Service have been moved to</Trans>{' '} 40 <TextLink 41 style={pal.link} 42 href="https://witchsky.app/about/tos" 43 text="witchsky.app/about/tos" 44 /> 45 </Text> 46 </View> 47 <View style={s.footerSpacer} /> 48 </ScrollView> 49 </Layout.Screen> 50 ) 51}