diff options
Diffstat (limited to 'src/view/com/profile/ProfileFollowers.tsx')
-rw-r--r-- | src/view/com/profile/ProfileFollowers.tsx | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/view/com/profile/ProfileFollowers.tsx b/src/view/com/profile/ProfileFollowers.tsx index 00207c4d2..13d134c39 100644 --- a/src/view/com/profile/ProfileFollowers.tsx +++ b/src/view/com/profile/ProfileFollowers.tsx @@ -1,10 +1,11 @@ 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 { UserFollowersViewModel, FollowerItem, } from '../../../state/models/user-followers-view' +import {CenteredView, FlatList} from '../util/Views' import {Link} from '../util/Link' import {Text} from '../util/text/Text' import {ErrorMessage} from '../util/error/ErrorMessage' @@ -43,9 +44,9 @@ export const ProfileFollowers = observer(function ProfileFollowers({ if (!view.hasLoaded) { return ( - <View> + <CenteredView> <ActivityIndicator /> - </View> + </CenteredView> ) } @@ -53,9 +54,9 @@ export const ProfileFollowers = observer(function ProfileFollowers({ // = if (view.hasError) { return ( - <View> + <CenteredView> <ErrorMessage message={view.error} onPressTryAgain={onRefresh} /> - </View> + </CenteredView> ) } |