diff options
Diffstat (limited to 'src/view/com/util/error/ErrorScreen.tsx')
-rw-r--r-- | src/view/com/util/error/ErrorScreen.tsx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/view/com/util/error/ErrorScreen.tsx b/src/view/com/util/error/ErrorScreen.tsx index 0221ea153..c66ee7903 100644 --- a/src/view/com/util/error/ErrorScreen.tsx +++ b/src/view/com/util/error/ErrorScreen.tsx @@ -8,6 +8,7 @@ import {Text} from '../text/Text' import {colors} from 'lib/styles' import {useTheme} from 'lib/ThemeContext' import {usePalette} from 'lib/hooks/usePalette' +import {CenteredView} from '../Views' export function ErrorScreen({ title, @@ -25,7 +26,7 @@ export function ErrorScreen({ const theme = useTheme() const pal = usePalette('error') return ( - <View testID={testID} style={[styles.outer, pal.view]}> + <CenteredView testID={testID} style={[styles.outer, pal.view]}> <View style={styles.errorIconContainer}> <View style={[ @@ -72,7 +73,7 @@ export function ErrorScreen({ </TouchableOpacity> </View> )} - </View> + </CenteredView> ) } |