diff --git a/src/components/connectstatus/index.tsx b/src/components/connectstatus/index.tsx
index ef77f3e..4f036f0 100644
--- a/src/components/connectstatus/index.tsx
+++ b/src/components/connectstatus/index.tsx
@@ -3,7 +3,7 @@ import {useTranslation} from 'react-i18next';
import {View} from 'react-native';
import {NetworkConsumer} from 'react-native-offline';
import {Text, useTheme} from 'react-native-paper';
-import {useSafeAreaPaddingTop} from 'theme/styles';
+import {SafeAreaView} from 'react-native-safe-area-context';
/**
* Connect Status
@@ -11,23 +11,25 @@ import {useSafeAreaPaddingTop} from 'theme/styles';
const ConnectStatus = () => {
const {t} = useTranslation();
const {colors} = useTheme();
- const safeInsets = useSafeAreaPaddingTop();
- const box = {
- backgroundColor: colors.error,
+ const errorBox = {
+ backgroundColor: colors.errorContainer,
+ };
+ const errorBoxText = {
+ color: colors.onErrorContainer,
};
return (
-
- {({isConnected}) =>
- isConnected ? (
-
- ) : (
-
- {t('no-internet-connection')}
-
- )
- }
-
+
+
+ {({isConnected}) =>
+ !isConnected && (
+
+ {t('no-internet-connection')}
+
+ )
+ }
+
+
);
};