Rename, comment
This commit is contained in:
@@ -42,7 +42,7 @@ import {ListFooter} from '#/components/Lists'
|
||||
const PARENT_CHUNK_SIZE = 5
|
||||
const CHILDREN_CHUNK_SIZE = 50
|
||||
|
||||
export function Inner({uri}: {uri: string | undefined}) {
|
||||
export function PostThread({uri}: {uri: string | undefined}) {
|
||||
const {gtMobile} = useBreakpoints()
|
||||
const {hasSession} = useSession()
|
||||
const initialNumToRender = useInitialNumToRender() // TODO
|
||||
@@ -358,7 +358,12 @@ export function Inner({uri}: {uri: string | undefined}) {
|
||||
)
|
||||
} else if (item.depth === 0) {
|
||||
return (
|
||||
<View>
|
||||
/*
|
||||
* Keep this view wrapped so that the anchor post is always index 0
|
||||
* in the list and `maintainVisibleContentPosition` can do its
|
||||
* thing.
|
||||
*/
|
||||
<View collapsable={false}>
|
||||
<View
|
||||
/*
|
||||
* IMPORTANT: this is a load-bearing key on all platforms. We
|
||||
|
||||
@@ -9,7 +9,7 @@ import {useGate} from '#/lib/statsig/statsig'
|
||||
import {makeRecordUri} from '#/lib/strings/url-helpers'
|
||||
import {useSetMinimalShellMode} from '#/state/shell'
|
||||
import {PostThread as PostThreadComponent} from '#/view/com/post-thread/PostThread'
|
||||
import {Inner} from '#/screens/PostThread'
|
||||
import {PostThread} from '#/screens/PostThread'
|
||||
import * as Layout from '#/components/Layout'
|
||||
|
||||
type Props = NativeStackScreenProps<CommonNavigatorParams, 'PostThread'>
|
||||
@@ -29,7 +29,7 @@ export function PostThreadScreen({route}: Props) {
|
||||
return (
|
||||
<Layout.Screen testID="postThreadScreen">
|
||||
{gate('post_threads_v2_unspecced') || __DEV__ ? (
|
||||
<Inner uri={uri} />
|
||||
<PostThread uri={uri} />
|
||||
) : (
|
||||
<PostThreadComponent uri={uri} />
|
||||
)}
|
||||
|
||||
Reference in New Issue
Block a user