about summary refs log tree commit diff
path: root/src/view/com/post-thread/PostThread.tsx
diff options
context:
space:
mode:
authorPaul Frazee <pfrazee@gmail.com>2023-01-26 17:55:15 -0600
committerPaul Frazee <pfrazee@gmail.com>2023-01-26 17:55:15 -0600
commitd04a6d7539c53ec3510175459c1ca8c8e7e994da (patch)
treeacdc3b3e9dd59bf0fa242bac8d94be1744ac4033 /src/view/com/post-thread/PostThread.tsx
parent57d876a5304860bf47ff10553e55b568c0a6daba (diff)
downloadvoidsky-d04a6d7539c53ec3510175459c1ca8c8e7e994da.tar.zst
Add web layout components
Diffstat (limited to 'src/view/com/post-thread/PostThread.tsx')
-rw-r--r--src/view/com/post-thread/PostThread.tsx11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/view/com/post-thread/PostThread.tsx b/src/view/com/post-thread/PostThread.tsx
index a52bc643c..59dbf1e16 100644
--- a/src/view/com/post-thread/PostThread.tsx
+++ b/src/view/com/post-thread/PostThread.tsx
@@ -1,6 +1,7 @@
 import React, {useRef} from 'react'
 import {observer} from 'mobx-react-lite'
-import {ActivityIndicator, FlatList, View} from 'react-native'
+import {ActivityIndicator, View} from 'react-native'
+import {CenteredView, FlatList} from '../util/Views'
 import {
   PostThreadViewModel,
   PostThreadViewPostModel,
@@ -50,9 +51,9 @@ export const PostThread = observer(function PostThread({
   // =
   if ((view.isLoading && !view.isRefreshing) || view.params.uri !== uri) {
     return (
-      <View>
+      <CenteredView>
         <ActivityIndicator />
-      </View>
+      </CenteredView>
     )
   }
 
@@ -60,9 +61,9 @@ export const PostThread = observer(function PostThread({
   // =
   if (view.hasError) {
     return (
-      <View>
+      <CenteredView>
         <ErrorMessage message={view.error} onPressTryAgain={onRefresh} />
-      </View>
+      </CenteredView>
     )
   }