diff options
Diffstat (limited to 'src/view/com/post-thread')
-rw-r--r-- | src/view/com/post-thread/PostLikedBy.tsx | 7 | ||||
-rw-r--r-- | src/view/com/post-thread/PostRepostedBy.tsx | 7 | ||||
-rw-r--r-- | src/view/com/post-thread/PostThread.tsx | 9 |
3 files changed, 6 insertions, 17 deletions
diff --git a/src/view/com/post-thread/PostLikedBy.tsx b/src/view/com/post-thread/PostLikedBy.tsx index 6e013f611..58208916b 100644 --- a/src/view/com/post-thread/PostLikedBy.tsx +++ b/src/view/com/post-thread/PostLikedBy.tsx @@ -6,6 +6,7 @@ import {List} from '../util/List' import {ErrorMessage} from '../util/error/ErrorMessage' import {ProfileCardWithFollowBtn} from '../profile/ProfileCard' import {logger} from '#/logger' +import {LoadingScreen} from '../util/LoadingScreen' import {useResolveUriQuery} from '#/state/queries/resolve-uri' import {usePostLikedByQuery} from '#/state/queries/post-liked-by' import {cleanError} from '#/lib/strings/errors' @@ -60,11 +61,7 @@ export function PostLikedBy({uri}: {uri: string}) { }, []) if (isFetchingResolvedUri || !isFetched) { - return ( - <CenteredView> - <ActivityIndicator /> - </CenteredView> - ) + return <LoadingScreen /> } // error diff --git a/src/view/com/post-thread/PostRepostedBy.tsx b/src/view/com/post-thread/PostRepostedBy.tsx index a2d3be558..7bbd8aa68 100644 --- a/src/view/com/post-thread/PostRepostedBy.tsx +++ b/src/view/com/post-thread/PostRepostedBy.tsx @@ -6,6 +6,7 @@ import {List} from '../util/List' import {ProfileCardWithFollowBtn} from '../profile/ProfileCard' import {ErrorMessage} from '../util/error/ErrorMessage' import {logger} from '#/logger' +import {LoadingScreen} from '../util/LoadingScreen' import {useResolveUriQuery} from '#/state/queries/resolve-uri' import {usePostRepostedByQuery} from '#/state/queries/post-reposted-by' import {cleanError} from '#/lib/strings/errors' @@ -61,11 +62,7 @@ export function PostRepostedBy({uri}: {uri: string}) { ) if (isFetchingResolvedUri || !isFetched) { - return ( - <CenteredView> - <ActivityIndicator /> - </CenteredView> - ) + return <LoadingScreen /> } // error diff --git a/src/view/com/post-thread/PostThread.tsx b/src/view/com/post-thread/PostThread.tsx index 072ef7e33..8d2a4ac95 100644 --- a/src/view/com/post-thread/PostThread.tsx +++ b/src/view/com/post-thread/PostThread.tsx @@ -8,6 +8,7 @@ import { } from 'react-native' import {AppBskyFeedDefs} from '@atproto/api' import {CenteredView} from '../util/Views' +import {LoadingScreen} from '../util/LoadingScreen' import {List, ListMethods} from '../util/List' import { FontAwesomeIcon, @@ -125,13 +126,7 @@ export function PostThread({ return <PostThreadBlocked /> } if (!thread || isLoading || !preferences) { - return ( - <CenteredView> - <View style={s.p20}> - <ActivityIndicator size="large" /> - </View> - </CenteredView> - ) + return <LoadingScreen /> } return ( <PostThreadLoaded |