diff options
Diffstat (limited to 'src/view/screens/ProfileFollows.tsx')
-rw-r--r-- | src/view/screens/ProfileFollows.tsx | 35 |
1 files changed, 19 insertions, 16 deletions
diff --git a/src/view/screens/ProfileFollows.tsx b/src/view/screens/ProfileFollows.tsx index 07d6eaa78..bb3f2040f 100644 --- a/src/view/screens/ProfileFollows.tsx +++ b/src/view/screens/ProfileFollows.tsx @@ -10,21 +10,24 @@ import {useLingui} from '@lingui/react' import {msg} from '@lingui/macro' type Props = NativeStackScreenProps<CommonNavigatorParams, 'ProfileFollows'> -export const ProfileFollowsScreen = withAuthRequired(({route}: Props) => { - const {name} = route.params - const setMinimalShellMode = useSetMinimalShellMode() - const {_} = useLingui() +export const ProfileFollowsScreen = withAuthRequired( + ({route}: Props) => { + const {name} = route.params + const setMinimalShellMode = useSetMinimalShellMode() + const {_} = useLingui() - useFocusEffect( - React.useCallback(() => { - setMinimalShellMode(false) - }, [setMinimalShellMode]), - ) + useFocusEffect( + React.useCallback(() => { + setMinimalShellMode(false) + }, [setMinimalShellMode]), + ) - return ( - <View> - <ViewHeader title={_(msg`Following`)} /> - <ProfileFollowsComponent name={name} /> - </View> - ) -}) + return ( + <View> + <ViewHeader title={_(msg`Following`)} /> + <ProfileFollowsComponent name={name} /> + </View> + ) + }, + {isPublic: true}, +) |