From d2a4d580a8ff11c39de77274d327d8dd0914c1d4 Mon Sep 17 00:00:00 2001 From: Paul Frazee Date: Sun, 24 Dec 2023 14:29:23 -0800 Subject: Add policy links to left nav and settings page (#2300) --- src/view/screens/Settings.tsx | 23 +++++++++++++++++++++-- src/view/shell/Drawer.tsx | 19 +++++++++++++++++++ 2 files changed, 40 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/view/screens/Settings.tsx b/src/view/screens/Settings.tsx index b7ba32b0d..d48112dae 100644 --- a/src/view/screens/Settings.tsx +++ b/src/view/screens/Settings.tsx @@ -20,7 +20,7 @@ import * as AppInfo from 'lib/app-info' import {s, colors} from 'lib/styles' import {ScrollView} from '../com/util/Views' import {ViewHeader} from '../com/util/ViewHeader' -import {Link} from '../com/util/Link' +import {Link, TextLink} from '../com/util/Link' import {Text} from '../com/util/text/Text' import * as Toast from '../com/util/Toast' import {UserAvatar} from '../com/util/UserAvatar' @@ -721,7 +721,7 @@ export function SettingsScreen({}: Props) { - ·   +   ·   + + + + + diff --git a/src/view/shell/Drawer.tsx b/src/view/shell/Drawer.tsx index e5d2a3863..14bc6af26 100644 --- a/src/view/shell/Drawer.tsx +++ b/src/view/shell/Drawer.tsx @@ -51,6 +51,7 @@ import {useUnreadNotifications} from '#/state/queries/notifications/unread' import {emitSoftReset} from '#/state/events' import {useInviteCodesQuery} from '#/state/queries/invites' import {NavSignupCard} from '#/view/shell/NavSignupCard' +import {TextLink} from '../com/util/Link' let DrawerProfileCard = ({ account, @@ -106,6 +107,7 @@ export {DrawerProfileCard} let DrawerContent = ({}: {}): React.ReactNode => { const theme = useTheme() const pal = usePalette('default') + const {_} = useLingui() const setDrawerOpen = useSetDrawerOpen() const navigation = useNavigation() const {track} = useAnalytics() @@ -244,6 +246,23 @@ let DrawerContent = ({}: {}): React.ReactNode => { )} + + + + + + + -- cgit 1.4.1