Show composer reply prompt on tablet (#2622)
This commit is contained in:
@@ -152,7 +152,7 @@ function PostThreadLoaded({
|
|||||||
const {hasSession} = useSession()
|
const {hasSession} = useSession()
|
||||||
const {_} = useLingui()
|
const {_} = useLingui()
|
||||||
const pal = usePalette('default')
|
const pal = usePalette('default')
|
||||||
const {isTablet, isDesktop, isTabletOrMobile} = useWebMediaQueries()
|
const {isTablet, isMobile, isDesktop, isTabletOrMobile} = useWebMediaQueries()
|
||||||
const ref = useRef<ListMethods>(null)
|
const ref = useRef<ListMethods>(null)
|
||||||
const highlightedPostRef = useRef<View | null>(null)
|
const highlightedPostRef = useRef<View | null>(null)
|
||||||
const needsScrollAdjustment = useRef<boolean>(
|
const needsScrollAdjustment = useRef<boolean>(
|
||||||
@@ -271,7 +271,7 @@ function PostThreadLoaded({
|
|||||||
} else if (item === REPLY_PROMPT && hasSession) {
|
} else if (item === REPLY_PROMPT && hasSession) {
|
||||||
return (
|
return (
|
||||||
<View>
|
<View>
|
||||||
{isDesktop && <ComposePrompt onPressCompose={onPressReply} />}
|
{!isMobile && <ComposePrompt onPressCompose={onPressReply} />}
|
||||||
</View>
|
</View>
|
||||||
)
|
)
|
||||||
} else if (item === DELETED) {
|
} else if (item === DELETED) {
|
||||||
@@ -362,7 +362,7 @@ function PostThreadLoaded({
|
|||||||
[
|
[
|
||||||
hasSession,
|
hasSession,
|
||||||
isTablet,
|
isTablet,
|
||||||
isDesktop,
|
isMobile,
|
||||||
onPressReply,
|
onPressReply,
|
||||||
pal.border,
|
pal.border,
|
||||||
pal.viewLight,
|
pal.viewLight,
|
||||||
|
|||||||
Reference in New Issue
Block a user