diff options
Diffstat (limited to 'src/view/com/profile/ProfileFollows.tsx')
-rw-r--r-- | src/view/com/profile/ProfileFollows.tsx | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/view/com/profile/ProfileFollows.tsx b/src/view/com/profile/ProfileFollows.tsx index bd7e7a3ce..de2fe3324 100644 --- a/src/view/com/profile/ProfileFollows.tsx +++ b/src/view/com/profile/ProfileFollows.tsx @@ -1,6 +1,7 @@ import React, {useEffect} from 'react' import {observer} from 'mobx-react-lite' -import {ActivityIndicator, FlatList, StyleSheet, View} from 'react-native' +import {ActivityIndicator, StyleSheet, View} from 'react-native' +import {CenteredView, FlatList} from '../util/Views' import { UserFollowsViewModel, FollowItem, @@ -43,9 +44,9 @@ export const ProfileFollows = observer(function ProfileFollows({ if (!view.hasLoaded) { return ( - <View> + <CenteredView> <ActivityIndicator /> - </View> + </CenteredView> ) } @@ -53,9 +54,9 @@ export const ProfileFollows = observer(function ProfileFollows({ // = if (view.hasError) { return ( - <View> + <CenteredView> <ErrorMessage message={view.error} onPressTryAgain={onRefresh} /> - </View> + </CenteredView> ) } |