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
|
@ -24,11 +24,13 @@ import {useResolveUriQuery} from '#/state/queries/resolve-uri'
|
|||
import {ErrorMessage} from '../com/util/error/ErrorMessage'
|
||||
import {CenteredView} from '../com/util/Views'
|
||||
import {useComposerControls} from '#/state/shell/composer'
|
||||
import {useSession} from '#/state/session'
|
||||
|
||||
type Props = NativeStackScreenProps<CommonNavigatorParams, 'PostThread'>
|
||||
export function PostThreadScreen({route}: Props) {
|
||||
const queryClient = useQueryClient()
|
||||
const {_} = useLingui()
|
||||
const {hasSession} = useSession()
|
||||
const {fabMinimalShellTransform} = useMinimalShellMode()
|
||||
const setMinimalShellMode = useSetMinimalShellMode()
|
||||
const {openComposer} = useComposerControls()
|
||||
|
@ -89,7 +91,7 @@ export function PostThreadScreen({route}: Props) {
|
|||
/>
|
||||
)}
|
||||
</View>
|
||||
{isMobile && canReply && (
|
||||
{isMobile && canReply && hasSession && (
|
||||
<Animated.View
|
||||
style={[
|
||||
styles.prompt,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue