* cleanup PostThread rm some more unnecessary code cleanup some more pieces fix `isLoading` logic few fixes organize refactor `PostThread` allow chaining of `postThreadQuery` Update `Hashtag` screen with the component changes Make some changes to the List components adjust height and padding of bottom loader to account for bottom bar * rm unnecessary chaining logic * maxReplies logic * adjust error logic * use `<` instead of `<=` * add back warning comment * remove unused prop * adjust order * implement list improvements for followers/follows * update prop name * small adjustments fix flex add window size adjust isLoading * remove log * don't show retry for no results * don't show error if `isLoading`
29 lines
976 B
TypeScript
29 lines
976 B
TypeScript
import React from 'react'
|
|
import {View} from 'react-native'
|
|
import {useFocusEffect} from '@react-navigation/native'
|
|
import {NativeStackScreenProps, CommonNavigatorParams} from 'lib/routes/types'
|
|
import {ViewHeader} from '../com/util/ViewHeader'
|
|
import {ProfileFollows as ProfileFollowsComponent} from '../com/profile/ProfileFollows'
|
|
import {useSetMinimalShellMode} from '#/state/shell'
|
|
import {useLingui} from '@lingui/react'
|
|
import {msg} from '@lingui/macro'
|
|
|
|
type Props = NativeStackScreenProps<CommonNavigatorParams, 'ProfileFollows'>
|
|
export const ProfileFollowsScreen = ({route}: Props) => {
|
|
const {name} = route.params
|
|
const setMinimalShellMode = useSetMinimalShellMode()
|
|
const {_} = useLingui()
|
|
|
|
useFocusEffect(
|
|
React.useCallback(() => {
|
|
setMinimalShellMode(false)
|
|
}, [setMinimalShellMode]),
|
|
)
|
|
|
|
return (
|
|
<View style={{flex: 1}}>
|
|
<ViewHeader title={_(msg`Following`)} />
|
|
<ProfileFollowsComponent name={name} />
|
|
</View>
|
|
)
|
|
}
|