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
This commit is contained in:
parent
7897dd24a1
commit
1111108efe
7 changed files with 297 additions and 155 deletions
|
@ -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} />
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue