diff options
author | Eric Bailey <git@esb.lol> | 2023-12-14 17:46:27 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-14 15:46:27 -0800 |
commit | 1111108efee528d94a0ec5a6cb714aa09f6237db (patch) | |
tree | c15dbcf2f05c66c154216483ba0c5da69b806fdc /src/view/shell/Drawer.tsx | |
parent | 7897dd24a14e65d8ab1aa0e474a09e0628da31b7 (diff) | |
download | voidsky-1111108efee528d94a0ec5a6cb714aa09f6237db.tar.zst |
Some brand, some pwi (#2212)
* Add logo to left nav in logged out * Protect last routes * Hide links in left nav, hide nav * Replace bottom bar for pwi * Remove same links from drawer * Hide reply prompt * Allow search
Diffstat (limited to 'src/view/shell/Drawer.tsx')
-rw-r--r-- | src/view/shell/Drawer.tsx | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/src/view/shell/Drawer.tsx b/src/view/shell/Drawer.tsx index 4fb8565e8..e5d2a3863 100644 --- a/src/view/shell/Drawer.tsx +++ b/src/view/shell/Drawer.tsx @@ -221,18 +221,16 @@ let DrawerContent = ({}: {}): React.ReactNode => { <NavSignupCard /> )} - {hasSession && <InviteCodes />} - {hasSession && <View style={{height: 10}} />} - <SearchMenuItem isActive={isAtSearch} onPress={onPressSearch} /> - <HomeMenuItem isActive={isAtHome} onPress={onPressHome} /> - {hasSession && ( - <NotificationsMenuItem - isActive={isAtNotifications} - onPress={onPressNotifications} - /> - )} - {hasSession && ( + {hasSession ? ( <> + <InviteCodes /> + <View style={{height: 10}} /> + <SearchMenuItem isActive={isAtSearch} onPress={onPressSearch} /> + <HomeMenuItem isActive={isAtHome} onPress={onPressHome} /> + <NotificationsMenuItem + isActive={isAtNotifications} + onPress={onPressNotifications} + /> <FeedsMenuItem isActive={isAtFeeds} onPress={onPressMyFeeds} /> <ListsMenuItem onPress={onPressLists} /> <ModerationMenuItem onPress={onPressModeration} /> @@ -242,6 +240,8 @@ let DrawerContent = ({}: {}): React.ReactNode => { /> <SettingsMenuItem onPress={onPressSettings} /> </> + ) : ( + <SearchMenuItem isActive={isAtSearch} onPress={onPressSearch} /> )} <View style={styles.smallSpacer} /> |