Files
lnreader/src/components/ErrorView.js
T
Marcin Majewski 33ceb60850 eslint quick-fix (#87)
* fix(github-check): Catch github connection errors

* fix(eslint): fixed eslint warnings and errors

Fixed every eslint warning and error that wasn't one of the following:
- react-hooks/exhaustive-deps
- no-console

Added .vscode to .gitignore
Added no-console:warn to eslintrc

* fix(gradlew): set file to runnable (chmod 755)

* remove .vscode
2021-10-15 18:42:40 +05:30

29 lines
710 B
JavaScript

import React from 'react';
import {Text, View} from 'react-native';
import {IconButton} from 'react-native-paper';
// import {Row} from './Common';
import EmptyView from './EmptyView';
const ErrorView = ({theme, onRetry, error, openWebView}) => (
<View style={{flex: 1, justifyContent: 'center'}}>
<EmptyView
icon="(; ̄Д ̄)"
description={error}
style={{color: theme.textColorSecondary}}
>
<IconButton
icon="reload"
size={25}
style={{margin: 0, marginTop: 24}}
color={theme.text}
onPress={onRetry}
/>
<Text style={{color: theme.textColorPrimary}}>Retry</Text>
</EmptyView>
</View>
);
export default ErrorView;