diff options
Diffstat (limited to 'src/view/screens/ProfileFollows.tsx')
-rw-r--r-- | src/view/screens/ProfileFollows.tsx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/view/screens/ProfileFollows.tsx b/src/view/screens/ProfileFollows.tsx index 7edf8edba..f70944f55 100644 --- a/src/view/screens/ProfileFollows.tsx +++ b/src/view/screens/ProfileFollows.tsx @@ -2,12 +2,13 @@ import React from 'react' import {View} from 'react-native' import {useFocusEffect} from '@react-navigation/native' import {NativeStackScreenProps, CommonNavigatorParams} from 'lib/routes/types' +import {withAuthRequired} from 'view/com/auth/withAuthRequired' import {ViewHeader} from '../com/util/ViewHeader' import {ProfileFollows as ProfileFollowsComponent} from '../com/profile/ProfileFollows' import {useStores} from 'state/index' type Props = NativeStackScreenProps<CommonNavigatorParams, 'ProfileFollows'> -export const ProfileFollowsScreen = ({route}: Props) => { +export const ProfileFollowsScreen = withAuthRequired(({route}: Props) => { const store = useStores() const {name} = route.params @@ -23,4 +24,4 @@ export const ProfileFollowsScreen = ({route}: Props) => { <ProfileFollowsComponent name={name} /> </View> ) -} +}) |