diff options
author | Samuel Newman <mozzius@protonmail.com> | 2024-10-17 18:48:38 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-10-17 18:48:38 +0300 |
commit | 74b0929e4d79690394c1217f63e458da5bf7317b (patch) | |
tree | 0f285273e4ede1a5d3a408abe5f60db40af53c80 /src/view/com/util/ErrorBoundary.tsx | |
parent | 9a91746fbbd4d8e028195813bb0d47497a9cb4bf (diff) | |
download | voidsky-74b0929e4d79690394c1217f63e458da5bf7317b.tar.zst |
Logged out improvments (#5771)
* fetch all accounts in one go * delete unused component * add safeareaview to logged out layout * add safe area insets to LoggedOut view * add safe area insets to the error boundary * sanitize displaynames/handles * use button for X * increase spacing
Diffstat (limited to 'src/view/com/util/ErrorBoundary.tsx')
-rw-r--r-- | src/view/com/util/ErrorBoundary.tsx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/view/com/util/ErrorBoundary.tsx b/src/view/com/util/ErrorBoundary.tsx index dccd2bbc9..46b94932b 100644 --- a/src/view/com/util/ErrorBoundary.tsx +++ b/src/view/com/util/ErrorBoundary.tsx @@ -1,4 +1,5 @@ import React, {Component, ErrorInfo, ReactNode} from 'react' +import {StyleProp, ViewStyle} from 'react-native' import {msg} from '@lingui/macro' import {useLingui} from '@lingui/react' @@ -9,6 +10,7 @@ import {CenteredView} from './Views' interface Props { children?: ReactNode renderError?: (error: any) => ReactNode + style?: StyleProp<ViewStyle> } interface State { @@ -37,7 +39,7 @@ export class ErrorBoundary extends Component<Props, State> { } return ( - <CenteredView style={{height: '100%', flex: 1}}> + <CenteredView style={[{height: '100%', flex: 1}, this.props.style]}> <TranslatedErrorScreen details={this.state.error.toString()} /> </CenteredView> ) |