Rename, comment

This commit is contained in:
Eric Bailey
2025-06-10 14:40:11 -05:00
parent 8fa2eda8fa
commit 087246e1ee
2 changed files with 9 additions and 4 deletions
+7 -2
View File
@@ -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
+2 -2
View File
@@ -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} />
)}