diff options
Diffstat (limited to 'src/view/shell')
-rw-r--r-- | src/view/shell/Drawer.tsx | 19 | ||||
-rw-r--r-- | src/view/shell/desktop/Feeds.tsx | 1 | ||||
-rw-r--r-- | src/view/shell/desktop/LeftNav.tsx | 3 |
3 files changed, 22 insertions, 1 deletions
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<NavigationProp>() const {track} = useAnalytics() @@ -245,6 +247,23 @@ let DrawerContent = ({}: {}): React.ReactNode => { )} <View style={styles.smallSpacer} /> + + <View style={[{flexWrap: 'wrap', gap: 12}, s.flexCol]}> + <TextLink + type="md" + style={pal.link} + href="https://blueskyweb.xyz/support/tos" + text={_(msg`Terms of Service`)} + /> + <TextLink + type="md" + style={pal.link} + href="https://blueskyweb.xyz/support/privacy-policy" + text={_(msg`Privacy Policy`)} + /> + </View> + + <View style={styles.smallSpacer} /> <View style={styles.smallSpacer} /> </ScrollView> diff --git a/src/view/shell/desktop/Feeds.tsx b/src/view/shell/desktop/Feeds.tsx index 530d606f2..a8f5f1c66 100644 --- a/src/view/shell/desktop/Feeds.tsx +++ b/src/view/shell/desktop/Feeds.tsx @@ -86,6 +86,7 @@ function FeedItem({ const styles = StyleSheet.create({ container: { flex: 1, + // @ts-ignore web only -prf overflowY: 'auto', width: 300, paddingHorizontal: 12, diff --git a/src/view/shell/desktop/LeftNav.tsx b/src/view/shell/desktop/LeftNav.tsx index df6cb6499..f3c8c1d11 100644 --- a/src/view/shell/desktop/LeftNav.tsx +++ b/src/view/shell/desktop/LeftNav.tsx @@ -46,6 +46,7 @@ import {useComposerControls} from '#/state/shell/composer' import {useFetchHandle} from '#/state/queries/handle' import {emitSoftReset} from '#/state/events' import {NavSignupCard} from '#/view/shell/NavSignupCard' +import {isInvalidHandle} from '#/lib/strings/handles' function ProfileCard() { const {currentAccount} = useSession() @@ -221,7 +222,7 @@ function ComposeBtn() { if ( !handle || handle === currentAccount?.handle || - handle === 'handle.invalid' + isInvalidHandle(handle) ) return undefined |