diff options
author | dan <dan.abramov@gmail.com> | 2024-01-25 21:32:17 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-25 13:32:17 -0800 |
commit | ef84f3a25e9ff69000a2bc4f9f8caa7966dc3910 (patch) | |
tree | 0ea86ba36f68eeb9a7b6ea62831f30f6c9066562 /src/view/screens/PostThread.tsx | |
parent | de6b380f4ede660c5ab349d52ce8a595aa793aac (diff) | |
download | voidsky-ef84f3a25e9ff69000a2bc4f9f8caa7966dc3910.tar.zst |
Dejank navigation between thread posts (#2625)
* Dejank parent thread spinner * Fix bottom border/spinner jank * Revert unnecessary change
Diffstat (limited to 'src/view/screens/PostThread.tsx')
-rw-r--r-- | src/view/screens/PostThread.tsx | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/src/view/screens/PostThread.tsx b/src/view/screens/PostThread.tsx index 276dc842c..aa09ab9ed 100644 --- a/src/view/screens/PostThread.tsx +++ b/src/view/screens/PostThread.tsx @@ -5,7 +5,6 @@ import {useFocusEffect} from '@react-navigation/native' import {useQueryClient} from '@tanstack/react-query' import {NativeStackScreenProps, CommonNavigatorParams} from 'lib/routes/types' import {makeRecordUri} from 'lib/strings/url-helpers' -import {ViewHeader} from '../com/util/ViewHeader' import {PostThread as PostThreadComponent} from '../com/post-thread/PostThread' import {ComposePrompt} from 'view/com/composer/Prompt' import {s} from 'lib/styles' @@ -18,8 +17,6 @@ import {clamp} from 'lodash' import {useWebMediaQueries} from 'lib/hooks/useWebMediaQueries' import {useMinimalShellMode} from 'lib/hooks/useMinimalShellMode' import {useSetMinimalShellMode} from '#/state/shell' -import {useLingui} from '@lingui/react' -import {msg} from '@lingui/macro' import {useResolveUriQuery} from '#/state/queries/resolve-uri' import {ErrorMessage} from '../com/util/error/ErrorMessage' import {CenteredView} from '../com/util/Views' @@ -30,7 +27,6 @@ import {isWeb} from '#/platform/detection' type Props = NativeStackScreenProps<CommonNavigatorParams, 'PostThread'> export function PostThreadScreen({route}: Props) { const queryClient = useQueryClient() - const {_} = useLingui() const {hasSession} = useSession() const {fabMinimalShellTransform} = useMinimalShellMode() const setMinimalShellMode = useSetMinimalShellMode() @@ -79,9 +75,6 @@ export function PostThreadScreen({route}: Props) { return ( <View style={s.hContentRegion}> - {isMobile && ( - <ViewHeader title={_(msg({message: 'Post', context: 'description'}))} /> - )} <View style={s.flex1}> {uriError ? ( <CenteredView> |