diff options
author | dan <dan.abramov@gmail.com> | 2024-01-24 23:01:22 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-24 23:01:22 +0000 |
commit | c2733bc2c00d0a4cc79e3dc9436ae5950cc2ff61 (patch) | |
tree | 060618ee750472efed921f076d68a5efffe21a77 /src/view/com/post-thread/PostRepostedBy.tsx | |
parent | 9ff74ff30ac2d9e9bf461267a408442e616882c2 (diff) | |
download | voidsky-c2733bc2c00d0a4cc79e3dc9436ae5950cc2ff61.tar.zst |
Use consistent spinners for loading screens (#2611)
* Use consistent spinners for loading screens * Consolidate into LoadingScreen
Diffstat (limited to 'src/view/com/post-thread/PostRepostedBy.tsx')
-rw-r--r-- | src/view/com/post-thread/PostRepostedBy.tsx | 7 |
1 files changed, 2 insertions, 5 deletions
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 |