diff options
Diffstat (limited to 'src/view/screens/ProfileFollowers.tsx')
-rw-r--r-- | src/view/screens/ProfileFollowers.tsx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/view/screens/ProfileFollowers.tsx b/src/view/screens/ProfileFollowers.tsx index b248cdc3a..e2f95fbe4 100644 --- a/src/view/screens/ProfileFollowers.tsx +++ b/src/view/screens/ProfileFollowers.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 {ProfileFollowers as ProfileFollowersComponent} from '../com/profile/ProfileFollowers' import {useStores} from 'state/index' type Props = NativeStackScreenProps<CommonNavigatorParams, 'ProfileFollowers'> -export const ProfileFollowersScreen = ({route}: Props) => { +export const ProfileFollowersScreen = withAuthRequired(({route}: Props) => { const store = useStores() const {name} = route.params @@ -23,4 +24,4 @@ export const ProfileFollowersScreen = ({route}: Props) => { <ProfileFollowersComponent name={name} /> </View> ) -} +}) |