Bluesky app fork with some witchin' additions 💫

Add policy links to left nav and settings page (#2300)

authored by

Paul Frazee and committed by
GitHub
d2a4d580 b1994051

+40 -2
+21 -2
src/view/screens/Settings.tsx
··· 20 20 import {s, colors} from 'lib/styles' 21 21 import {ScrollView} from '../com/util/Views' 22 22 import {ViewHeader} from '../com/util/ViewHeader' 23 - import {Link} from '../com/util/Link' 23 + import {Link, TextLink} from '../com/util/Link' 24 24 import {Text} from '../com/util/text/Text' 25 25 import * as Toast from '../com/util/Toast' 26 26 import {UserAvatar} from '../com/util/UserAvatar' ··· 721 721 </Text> 722 722 </TouchableOpacity> 723 723 <Text type="sm" style={[pal.textLight]}> 724 - &middot; &nbsp; 724 + &nbsp; &middot; &nbsp; 725 725 </Text> 726 726 <TouchableOpacity 727 727 accessibilityRole="button" ··· 730 730 <Trans>Status page</Trans> 731 731 </Text> 732 732 </TouchableOpacity> 733 + </View> 734 + 735 + <View 736 + style={[ 737 + {flexWrap: 'wrap', gap: 12, paddingHorizontal: 18}, 738 + s.flexRow, 739 + ]}> 740 + <TextLink 741 + type="md" 742 + style={pal.link} 743 + href="https://blueskyweb.xyz/support/tos" 744 + text={_(msg`Terms of Service`)} 745 + /> 746 + <TextLink 747 + type="md" 748 + style={pal.link} 749 + href="https://blueskyweb.xyz/support/privacy-policy" 750 + text={_(msg`Privacy Policy`)} 751 + /> 733 752 </View> 734 753 <View style={s.footerSpacer} /> 735 754 </ScrollView>
+19
src/view/shell/Drawer.tsx
··· 51 51 import {emitSoftReset} from '#/state/events' 52 52 import {useInviteCodesQuery} from '#/state/queries/invites' 53 53 import {NavSignupCard} from '#/view/shell/NavSignupCard' 54 + import {TextLink} from '../com/util/Link' 54 55 55 56 let DrawerProfileCard = ({ 56 57 account, ··· 106 107 let DrawerContent = ({}: {}): React.ReactNode => { 107 108 const theme = useTheme() 108 109 const pal = usePalette('default') 110 + const {_} = useLingui() 109 111 const setDrawerOpen = useSetDrawerOpen() 110 112 const navigation = useNavigation<NavigationProp>() 111 113 const {track} = useAnalytics() ··· 243 245 ) : ( 244 246 <SearchMenuItem isActive={isAtSearch} onPress={onPressSearch} /> 245 247 )} 248 + 249 + <View style={styles.smallSpacer} /> 250 + 251 + <View style={[{flexWrap: 'wrap', gap: 12}, s.flexCol]}> 252 + <TextLink 253 + type="md" 254 + style={pal.link} 255 + href="https://blueskyweb.xyz/support/tos" 256 + text={_(msg`Terms of Service`)} 257 + /> 258 + <TextLink 259 + type="md" 260 + style={pal.link} 261 + href="https://blueskyweb.xyz/support/privacy-policy" 262 + text={_(msg`Privacy Policy`)} 263 + /> 264 + </View> 246 265 247 266 <View style={styles.smallSpacer} /> 248 267 <View style={styles.smallSpacer} />